/* Copyright (c) 2026 Session Buddy - All Rights Reserved */ /* The contents of this file may not be modified, copied, and/or distributed, in whole or in part, without the express permission of the author, reachable at support@sessionbuddy.com */ /*! For license information please see experiments.bundle.js.LICENSE.txt */ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=271)}([function(e,t,n){"use strict";e.exports=n(192)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=n.relative,o=n.bare,i=n.noun;if(!e)return"";var a=t&&+e<+t;return c.a.date(a?t:e,o?{format:r?"relative":"long"}:{format:r?"relative":"long",noun:i,verb:a?"updated":"created"})}function D(e){return"tabs"in e}function F(e){var t;return null!==(t=null===e||void 0===e?void 0:e.reduce((function(e,t){return e+t.tabs.length}),0))&&void 0!==t?t:0}function z(e){return Object(f.d)(Object(f.c)(e,B))}function B(e,t){return!1!==e&&(!H(t)||e!==R.window[t])}function H(e){return e in R.window}function U(e){return Object(f.d)(Object(f.c)(e,W))}function W(e,t){return!1!==e&&(!("favIconUrl"===t&&!e)&&((!q(t)||e!==R.tab[t])&&!!("mutedInfo"!==t||e&&"object"===typeof e&&"muted"in e&&e.muted)))}function q(e){return e in R.tab}function G(e){var t,n=e.groups,r=e.unitIds,c=e.groupIds,u=e.mapGroup,l=e.mapUnit,s=!r.length&&!c.length,f=[],d=Object(a.a)(n);try{for(d.s();!(t=d.n()).done;){var p=t.value;if(!p.deleted)if(s||c.includes(p.id))f.push(u(p));else{var h=X(p).filter((function(e){return!e.deleted&&r.includes(e.id)})).map((function(e){return l(e)}));if(h.length){var v=u(p,!0);f.push(Object(i.a)(Object(i.a)({},v),{},Object(o.a)({},D(v)?"tabs":"links",h)))}}}}catch(b){d.e(b)}finally{d.f()}return f}function V(e,t){return G(Object(i.a)(Object(i.a)({groups:e},t),{},{mapGroup:d.b,mapUnit:d.b}))}function K(e,t){return $(e,t)||{}}function $(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"unavailable";if(!E(t)){var r=m(e,t,!0);r?r.invalid=n:e.invalidSets=Object(o.b)(e.invalidSets,[{id:t,invalid:n}],a.a)}}function d(e,t){if(!E(t)){var n=m(e,t,!0);(null===n||void 0===n?void 0:n.invalid)?delete n.invalid:e.invalidSets=Object(o.j)(e.invalidSets,(function(e){return e.id===t}))}}function p(e,t){if(E(t))return!1;var n=m(e,t,!0);return n?!!n.invalid:e.invalidSets.some((function(e){return e.id===t}))}function h(e,t){if(!E(t)){var n=m(e,t,!0);n?n.loading=!0:e.loadingNewSetIds=F(e.loadingNewSetIds,[t],!0)}}function v(e,t){if(!E(t)){var n=m(e,t,!0);n&&(n.loading=!1),e.loadingNewSetIds=Object(o.j)(e.loadingNewSetIds,(function(e){return e===t}))}}function b(e,t){if(E(t))return!1;var n=m(e,t,!0);return n?!!n.loading:e.loadingNewSetIds.includes(t)}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t)return y(e,t,n)||k(e,t,n)||g(e,t)}function y(e,t){if(t)return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||!p(e,t)?e.collections.sets[t]:void 0}function g(e,t){if(t)return e.clientHistory.sets[t]}function w(e){if(1!==e.selectedSetIds.length)return null;var t=e.selectedSetIds[0],n=y(e,t);return n?S(n)||b(e,t)?null:n:null}function x(e,t){for(var n=e.selectedSetIds.length-1;n>=0;n--){var r=y(e,e.selectedSetIds[n]);if(r&&(!t||t(r)))return r}}function O(e){var t,n,r=-1;do{t=e.collections.navSetIds.at(r--),n=y(e,t)}while(t&&!n);return n}function j(e){var t,n,r=-1;do{t=e.clientHistory.navSetIds.at(r--),n=g(e,t)}while(t&&!n);return n}function k(e,t){if(t)return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||!p(e,t)?e.remoteClients.sets[t]:void 0}function S(e){return!e||Object(i.h)(e,"folders")&&Object(i.h)(e,"windows")}function E(e){return e===u.j||e===l.a.id}function C(e,t,n){return+((null===t||void 0===t?void 0:t[n])||0)-+((null===e||void 0===e?void 0:e[n])||0)}var T=new Map,I=new Map;function P(e,t,n,o){var a;o?T.has(e.id)?a=T.get(e.id):(a=Object(c.c)(),T.set(e.id,a)):a=Object(c.c)();var l=Object(u.E)(e),s=Object(r.a)(Object(r.a)({},Object(i.i)(l,u.i)),{},{id:a});return n&&(s.sourceId=e.id),Object(r.a)(Object(r.a)({},s),{},{links:t||!l.tabs?[]:l.tabs.filter((function(e){return!e.deleted})).map((function(e){return L(e,o)}))})}function L(e,t){var n;t?I.has(e.id)?n=I.get(e.id):(n=Object(c.c)(),I.set(e.id,n)):n=Object(c.c)();var o=Object(u.D)(e);return Object(r.a)(Object(r.a)({},Object(i.i)(o,u.h)),{},{id:n})}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clearLinks,o=t.includeSourceId,a=t.preserveId,u=Object(i.i)(e,["title","description","icon","type","state","incognito","top","left","width","height","deleted"]),l=Object(r.a)({id:a&&e.id?e.id:Object(c.c)()},u);return o&&(l.sourceId=e.id),Object(r.a)(Object(r.a)({},l),{},{links:n||!e.links?[]:e.links.filter((function(e){return!e.deleted})).map((function(e){return R(e,a)}))})}function R(e,t){var n=Object(i.i)(e,["url","favIconUrl","title","titleOriginal","description","userDescription","groupId","active","pinned","deleted"]);return Object(r.a)({id:t&&e.id?e.id:Object(c.c)()},n)}function N(e){var t=e.folders,n=e.itemSelections,o=void 0===n?{unitIds:[],groupIds:[]}:n,i=e.includeSourceId;return Object(u.B)(Object(r.a)(Object(r.a)({groups:t},o),{},{mapGroup:function(e,t){return _(e,{clearLinks:t,includeSourceId:i})},mapUnit:function(e){return R(e)}}))}function M(e){var t=e.windows,n=e.itemSelections,o=void 0===n?{unitIds:[],groupIds:[]}:n,i=e.includeSourceId;return Object(u.B)(Object(r.a)(Object(r.a)({groups:t},o),{},{mapGroup:function(e,t){return P(e,t,i)},mapUnit:function(e){return L(e)}}))}function A(e){var t=e.multipleSetsAreSelected,n=e.onlyLocalClientIsSelected,r=e.isEventSelected,o=e.isFolders,i=e.itemSelections,a=i.unitIds,c=i.groupIds,u=a.length||c.length;return t?u?"multi-links":"multi":n?r?u?"local-client-history-tabs":"local-client-history":u?"local-client-tabs":"local-client":o?u?"collection-links":"collection":u?"remote-client-tabs":"remote-client"}function D(e){var t=e.combining,n=e.selectedSetCount,r=e.sourceType;return t?{successText:s.a.collectionsCombined(n),failureText:s.a.failedToCombineCollections()}:"local-client"===r||"local-client-tabs"===r||"remote-client"===r||"remote-client-tabs"===r?{successText:s.a.tabsSaved(),failureText:s.a.failedToSaveTabs()}:"collection"===r?{successText:s.a.collectionCloned(),failureText:s.a.failedToCloneCollection()}:{}}function F(e,t,n){var r=Object(o.b)(n?e:void 0,t);return Object(o.f)(e,r)?e:r}function z(e,t){return E(t)?"local-client":y(e,t)?"collection":k(e,t)?"remote-client":void 0}},function(e,t,n){"use strict";var r=n(1),o=n(57),i=n(52),a=n(47),c=n(3),u=n(22),l=n(5),s=n(32),f=n(12);var d={navRemoteClientsLoading:function(e){return e.content.sets.remoteClients.navSetsLoading},navRemoteClientsLoadingLong:function(e){return e.content.sets.remoteClients.navSetsLoadingLong},navRemoteClients:function(e){var t=e.content;return t.sets.remoteClients.navSetIds.map((function(e){return t.sets.remoteClients.sets[e]})).filter(Boolean)},navRemoteClientIds:function(e){return e.content.sets.remoteClients.navSetIds}},p=n(71),h=n(49),v=n(24);n.d(t,"a",(function(){return I})),n.d(t,"c",(function(){return P})),n.d(t,"d",(function(){return L})),n.d(t,"b",(function(){return _}));var b={sets:{selectedSetIds:Object(i.g)(),selectedClientHistoryItemId:Object(h.l)(),localWindows:[],localWindowsInitialized:!1,clientHistory:Object(i.f)(),remoteClients:Object(i.f)(),collections:Object(i.f)(),loadingNewSetIds:[],invalidSets:[],searchTerms:null,filterSearchTerms:null,searchResults:null,searchResultsLoading:!1},items:Object(a.b)()},m=Object(o.b)({name:"content",initialState:b,reducers:{setsSelected:i.q,setsDeselected:i.p,fetchFullSetsStarted:i.d,fetchFullSetsSucceeded:i.e,fetchFullSetsFailed:i.c,selectDuplicateUnits:i.j,selectedSetIdsReset:i.k,setSearchTerms:i.o,setFilterSearchTerms:i.l,setSearchResults:i.m,setSearchResultsLoading:i.n,clearSearch:i.b,itemsSelected:a.h,itemsDeselected:a.f,unitSelectionToggled:a.l,groupSelectionToggled:a.d,unitRangeSelected:a.k,groupRangeSelected:a.c,itemSelectionCleared:a.e,localWindowsChanged:function(e,t){var n=t.payload;e.sets.localWindows=n,e.sets.localWindowsInitialized=!0},localItemsClosed:function(e,t){var n=t.payload,r=n.tabIds,o=void 0===r?[]:r,i=n.winIds,s=void 0===i?[]:i,d=e.sets.localWindows.filter((function(e){var t=e.id;return s.includes(t)}));e.sets.localWindows=Object(f.k)(e.sets.localWindows,d);var p,h=Object(l.r)(e.sets.localWindows).filter((function(e){var t=e.id;return o.includes(t)})),v=Object(u.a)(e.sets.localWindows);try{for(v.s();!(p=v.n()).done;){var b=p.value;b.tabs=Object(f.k)(b.tabs,h)}}catch(w){v.e(w)}finally{v.f()}var m=e.sets.localWindows.filter((function(e){return!e.tabs.length}));e.sets.localWindows=Object(f.k)(e.sets.localWindows,m);var y=[].concat(Object(c.a)(d),Object(c.a)(m)).map((function(e){return e.id})),g=[].concat(Object(c.a)(h),Object(c.a)(Object(l.r)(d))).map((function(e){return e.id}));Object(a.f)(e,{payload:{groupIds:y,unitIds:g}})},localTabIdSwapped:function(e,t){var n=t.payload,r=n.from,o=n.to,i=Object(l.p)(e.sets.localWindows,(function(e){return e.id===r})),a=i.unit;a&&(a.id=o,e.items.selectedUnitIds=Object(f.l)(e.items.selectedUnitIds,r,o))},fetchNavCollectionsStarted:p.h,fetchNavCollectionsLongStarted:p.g,fetchNavCollectionsSucceeded:p.i,fetchNavCollectionsFailed:p.f,navCollectionsNavSetIdsCleared:p.l,navCollectionsLoadingStopped:p.k,saveCollectionsStarted:p.n,saveCollectionsFailed:p.m,deleteCollectionsStarted:p.e,deleteCollectionsFailed:p.d,clientHistoryItemSelected:h.c,fetchFullClientHistoryItemStarted:h.f,fetchFullClientHistoryItemSucceeded:h.g,fetchFullClientHistoryItemFailed:h.e,deleteEventsStarted:h.d,saveEventsStarted:h.q,fetchNavClientHistoryStarted:h.j,fetchNavClientHistoryLongStarted:h.i,fetchNavClientHistorySucceeded:h.k,fetchNavClientHistoryFailed:h.h,navClientHistoryNavSetIdsCleared:h.o,navClientHistoryLoadingStopped:h.n,navClientHistoryRemoveFromSets:h.p}}),y=Object(v.i)(m.actions,["selectDuplicateUnits","setSearchTerms","setFilterSearchTerms","setSearchResults","setSearchResultsLoading","clearSearch","itemsSelected","itemsDeselected","unitSelectionToggled","groupSelectionToggled","unitRangeSelected","groupRangeSelected","itemSelectionCleared","localWindowsChanged","localItemsClosed","localTabIdSwapped","clientHistoryItemSelected"]),g=Object(v.i)(m.actions,i.a),w=Object(i.h)(g),x={findTabs:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,r){var o={window:[],tab:[]};if(!e.free.length&&!e.window.length&&!e.tab.length)return o;var i,a=r().content,f=Object(u.a)(a.sets.localWindows||[]);try{for(f.s();!(i=f.n()).done;){var d,p=i.value,h=Object(s.a)(p.title,[].concat(Object(c.a)(e.free),Object(c.a)(e.window))),v=0,b=0,m=Object(u.a)(p.tabs||[]);try{for(m.s();!(d=m.n()).done;){var y=d.value,g=Math.pow(Object(s.a)(y.title,[].concat(Object(c.a)(e.free),Object(c.a)(e.window),Object(c.a)(e.tab)))+Object(s.a)(y.url,[].concat(Object(c.a)(e.free),Object(c.a)(e.window),Object(c.a)(e.tab)),"url"),2);g&&(b++,t.excludeTabs||o.tab.push({id:y.id,setId:l.j,text:y.title||y.url,score:g,type:"tab",setTitle:"current session",unit:y}),v+=g)}}catch(w){m.e(w)}finally{m.f()}!h&&!v||t.excludeWindows||o.window.push({id:p.id,setId:l.j,text:p.title,score:h,secondaryScore:v,unitMatchCount:b,type:"window",setTitle:"current session"})}}catch(w){f.e(w)}finally{f.f()}return o}}},O=Object(v.i)(Object(r.a)(Object(r.a)({},m.actions),w),p.b),j=Object(p.j)(O),k=Object(v.i)(m.actions,h.b),S=Object(h.m)(k),E=Object(v.i)(m.actions,a.a),C=Object(a.i)(E),T=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},x),j),S),C),w),I=Object(r.a)(Object(r.a)({},y),T),P=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},{localWindows:function(e){return e.content.sets.localWindows},localWindowsInitialized:function(e){return e.content.sets.localWindowsInitialized}}),d),p.o),h.r),i.i),a.j);function L(e,t){return function(n,r){return e(r(),t)}}var _=m.reducer},function(e,t,n){"use strict";var r=n(72),o=n(21),i=n(16);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e),r=Object(o.a)(t),a=n.getTime()-r.getTime();return a<0?-1:a>0?1:a}function c(e){Object(i.a)(1,arguments);var t=Object(o.a)(e);return function(e){Object(i.a)(1,arguments);var t=Object(o.a)(e);return t.setHours(23,59,59,999),t}(t).getTime()===function(e){Object(i.a)(1,arguments);var t=Object(o.a)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(t).getTime()}function u(e,t){Object(i.a)(2,arguments);var n,r=Object(o.a)(e),u=Object(o.a)(t),l=a(r,u),s=Math.abs(function(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e),r=Object(o.a)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,u));if(s<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-l*s);var f=a(r,u)===-l;c(Object(o.a)(e))&&1===s&&1===a(e,u)&&(f=!1),n=l*(s-Number(f))}return 0===n?0:n}var l={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s="trunc";function f(e,t,n){Object(i.a)(2,arguments);var r,a=function(e,t){return Object(i.a)(2,arguments),Object(o.a)(e).getTime()-Object(o.a)(t).getTime()}(e,t)/1e3;return((r=null===n||void 0===n?void 0:n.roundingMethod)?l[r]:l[s])(a)}var d=n(106);function p(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function h(e){return p({},e)}var v=n(92),b=1440,m=2520,y=43200,g=86400;function w(e,t){return Object(i.a)(1,arguments),function(e,t,n){var c,l;Object(i.a)(2,arguments);var s=Object(r.a)(),w=null!==(c=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:s.locale)&&void 0!==c?c:d.a;if(!w.formatDistance)throw new RangeError("locale must contain formatDistance property");var x=a(e,t);if(isNaN(x))throw new RangeError("Invalid time value");var O,j,k=p(h(n),{addSuffix:Boolean(null===n||void 0===n?void 0:n.addSuffix),comparison:x});x>0?(O=Object(o.a)(t),j=Object(o.a)(e)):(O=Object(o.a)(e),j=Object(o.a)(t));var S,E=f(j,O),C=(Object(v.a)(j)-Object(v.a)(O))/1e3,T=Math.round((E-C)/60);if(T<2)return null!==n&&void 0!==n&&n.includeSeconds?E<5?w.formatDistance("lessThanXSeconds",5,k):E<10?w.formatDistance("lessThanXSeconds",10,k):E<20?w.formatDistance("lessThanXSeconds",20,k):E<40?w.formatDistance("halfAMinute",0,k):E<60?w.formatDistance("lessThanXMinutes",1,k):w.formatDistance("xMinutes",1,k):0===T?w.formatDistance("lessThanXMinutes",1,k):w.formatDistance("xMinutes",T,k);if(T<45)return w.formatDistance("xMinutes",T,k);if(T<90)return w.formatDistance("aboutXHours",1,k);if(T0?(m=Object(o.a)(t),y=Object(o.a)(e)):(m=Object(o.a)(e),y=Object(o.a)(t));var w,S=String(null!==(l=null===n||void 0===n?void 0:n.roundingMethod)&&void 0!==l?l:"round");if("floor"===S)w=Math.floor;else if("ceil"===S)w=Math.ceil;else{if("round"!==S)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");w=Math.round}var E,C=y.getTime()-m.getTime(),T=C/x,I=(C-(Object(v.a)(y)-Object(v.a)(m)))/x,P=null===n||void 0===n?void 0:n.unit;if("second"===(E=P?String(P):T<1?"second":T<60?"minute":T1&&void 0!==arguments[1]?arguments[1]:{},n=t.relaxed,r=t.justNowThreshold,o=void 0===r?5e3:r,i=D(e);if(!i)return"at some point";if(n)return w(i,{addSuffix:!0});var a=N()-+i;return a>=0&&a1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,a=void 0===n?"":n,u=t.severity,l=void 0===u?"error":u;i?function(e){return"error"===e?console.error:"warn"===e?console.warn:console.log}(l)(a,e):function(e){return"error"===e?r.h:"warn"===e?r.i:"success"===e?r.f:"notice"===e?c:r.e}(l)(Object(o.a)(e,a))}},function(e,t,n){"use strict";var r=n(1),o=n(229),i=n(21),a=n(16);function c(e){Object(a.a)(1,arguments);var t=Object(i.a)(e);return t.setHours(0,0,0,0),t}function u(e,t){Object(a.a)(2,arguments);var n=c(e),r=c(t);return n.getTime()===r.getTime()}var l=n(55);function s(e,t){return Object(a.a)(2,arguments),function(e,t){Object(a.a)(2,arguments);var n=Object(i.a)(e),r=Object(l.a)(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(e,-Object(l.a)(t))}var f=n(35),d=n(8),p=n(75),h=n(13);n.d(t,"a",(function(){return b}));var v={client:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"browser","browsers")},collection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"collection","collections",{bare:"collections",withCount:"no collections"})}},b=Object(r.a)(Object(r.a)(Object(r.a)({},{updated:function(){return"updated"},created:function(){return"created"}}),v),{},{thisBrowser:function(){return"this browser"},session:function(){return"session"},history:function(){return"history"},event:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"event","events",{bare:"events",withCount:"no events"})},item:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"item","items",{bare:"items",withCount:"no items"})},window:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"window","windows",{bare:"windows",withCount:"no windows"})},incognitoWindow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"incognito window","incognito windows",{bare:"incognito windows",withCount:"no incognito windows"})},currentWindow:function(){return"this window"},folder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"folder","folders",{bare:"folders",withCount:"no folders"})},incognitoFolder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"incognito folder","incognito folders",{bare:"incognito folders",withCount:"no incognito folders"})},tab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"tab","tabs",{bare:"tabs",withCount:"no tabs"})},selectedTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"selected tab","selected tabs",{bare:"selected tabs",withCount:"no selected tabs"})},link:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"link","links",{bare:"links",withCount:"no links"})},selectedLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"selected link","selected links",{bare:"selected links",withCount:"no selected links"})},summarizedItems:function(e){var t=e.groupCount,n=e.unitCount,r=e.isWindow,o=e.includeCount,i=r?b.window:b.folder,a=r?b.tab:b.link;return t&&n?"".concat(i({count:t,includeCount:o})," and ").concat(a({count:n,includeCount:o})):t?i({count:t,includeCount:o}):a({count:n,includeCount:o})},title:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"title","titles")},url:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"URL","URLs",{bare:"URLs",withCount:"no URLs"})},favicon:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"favicon","favicons")},untitled:function(){return"untitled"},import:function(){return"import"},restore:function(){return"restore"},recover:function(){return"recover"},date:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.format,r=t.noun,i=t.verb,a="long"===n?Object(o.a)(e,"MMMM d".concat(new Date(e).getFullYear()!==(new Date).getFullYear()?", yyyy":""," 'at' h:mm a")):"relative"===n?Object(d.j)(e,{justNowThreshold:3e4}):"short"===n||"short-abbreviate-recent"===n?this.shortDate(e,{abbreviateRecent:"short-abbreviate-recent"===n}):Object(d.l)(e);return r&&i?"".concat(b[r]()," ").concat(b[i]()," ").concat(a):i?"".concat(b[i]()," ").concat(a):a},shortDate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).abbreviateRecent;if(t&&function(e){return Object(a.a)(1,arguments),u(e,Date.now())}(e))return Object(o.a)(e,"h:mm a");if(t&&function(e){return Object(a.a)(1,arguments),u(e,s(Date.now(),1))}(e))return"".concat(b.yesterday()," \u2022 ").concat(Object(o.a)(e,"h:mm a"));var n=!t||new Date(e).getFullYear()!==(new Date).getFullYear();return Object(o.a)(e,"MMM d".concat(n?", yyyy":""," ' \u2022 ' h:mm a"))},now:function(){return"now"},yesterday:function(){return"yesterday"},number:function(e){return(+e||0).toLocaleString("en-US")},integer:function(e){return(+e||0).toLocaleString("en-US",{maximumFractionDigits:0})},alt:function(){return"alt"},shift:function(){return"shift"},ctrl:function(){return"ctrl"},cmd:function(){return"cmd"},ctrlOrCmd:function(){return"mac"===p.a?b.cmd():b.ctrl()},keyModifier:function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:o.c;return[].concat(Object(r.a)(e?d(e,(function(e){return t.some((function(t){return n(t,e)}))})):[]),Object(r.a)(function(e){return e.filter((function(t,n){return e.lastIndexOf(t)===n}))}(t)))}function d(e,t){return e.some(t)?e.filter((function(e){return!t(e)})):e}function p(e,t){return t.length?d(e,(function(e){return t.includes(e)})):e}function h(e,t){return[e.slice(0,t),e.slice(t)]}function v(e,t){for(var n=[],r=[],o=0;o=e.length)return[e];for(var n=[],r=0;r=e.length-1&&n>0)return e;var r=e.slice(),o=r.splice(t,1);if(1!==o.length)return e;var i=Math.min(Math.max(t+n,0),r.length);return r.splice(i,0,o[0]),r}function x(e,t){return w(e,t,-1)}function O(e,t){return w(e,t,1)}},function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"j",(function(){return f})),n.d(t,"f",(function(){return p}));n(3);function r(e,t){return(null===e||void 0===e?void 0:e.startsWith(t))?e.slice(t.length):e}function o(e,t){return(null===t||void 0===t?void 0:t.length)&&(null===e||void 0===e?void 0:e.endsWith(t))?e.slice(0,-t.length):e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=e.lastIndexOf(t);return n<0?e:e.slice(0,n)}function a(e){return e.replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")}function c(e){return e?"".concat(e[0].toLocaleUpperCase()).concat(e.substring(1)):""}function u(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),n=e.toLowerCase();return tn?1:0}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.replace(/^/gm," ".repeat(t))}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.replace(/^(?=[^\n])/gm," ".repeat(t))}function f(e){return e.toUpperCase()}var d="\ufeff";function p(e){return e.startsWith(d)?p(e.slice(1)):e}},function(e,t,n){"use strict";var r=n(138);var o=n(91),i=n(139);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(76);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"n",(function(){return m})),n.d(t,"m",(function(){return y})),n.d(t,"f",(function(){return g})),n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"j",(function(){return O})),n.d(t,"i",(function(){return j})),n.d(t,"g",(function(){return k})),n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"h",(function(){return C})),n.d(t,"e",(function(){return T})),n.d(t,"q",(function(){return I})),n.d(t,"p",(function(){return P})),n.d(t,"o",(function(){return L})),n.d(t,"k",(function(){return _})),n.d(t,"l",(function(){return R}));var r=n(3),o=n(14),i=n(2),a=n(1),c=n(67),u=n(57),l=n(29),s=n(18),f=n(110);function d(){d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function p(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}f.b.clientId,f.b.clientCreated;var p=Object(c.a)(f.b,["clientId","clientCreated"]),h=Object(a.a)(Object(a.a)({},{settingsIsOpen:!1,importExportDialog:null,animationIsDisabled:!1}),p),v=Object(u.b)({name:"settings",initialState:h,reducers:{settingsOpened:function(e){e.settingsIsOpen=!0},settingsClosed:function(e){e.settingsIsOpen=!1},importDialogOpened:function(e){e.importExportDialog="transfer"},exportDialogOpened:function(e){e.importExportDialog="export"},backupDialogOpened:function(e){e.importExportDialog="backup"},restoreDialogOpened:function(e){e.importExportDialog="restore"},restoreDialogAutoBackupOpened:function(e){e.importExportDialog="restore:auto-backup"},importExportDialogClosed:function(e){e.importExportDialog=null},animationDisabled:function(e){e.animationIsDisabled=!0},animationEnabled:function(e){e.animationIsDisabled=!1},hydrated:function(e,t){var n=t.payload;return Object(a.a)(Object(a.a)({},h),n)},settingChanged:function(e,t){var n=t.payload,r=n.id,o=n.value;e[r]=o}}}),b=v.actions,m=b.settingsOpened,y=b.settingsClosed,g=b.importDialogOpened,w=b.exportDialogOpened,x=b.backupDialogOpened,O=b.restoreDialogOpened,j=b.restoreDialogAutoBackupOpened,k=b.importExportDialogClosed,S=b.animationDisabled,E=b.animationEnabled,C=v.reducer;function T(){return function(){var e=Object(i.a)(d().mark((function e(t){var n,r,i,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l.b)();case 3:return n=e.sent,r=n.settings,e.next=7,r.all();case 7:i=e.sent,a=Object.fromEntries(i.map((function(e){return[e.id,e.value]})).filter((function(e){var t=Object(o.a)(e,1)[0];return"clientId"!==t&&"clientCreated"!==t}))),t(v.actions.hydrated(a)),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),Object(s.e)(e.t0,{prefix:"Failed to hydrate settings"});case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}()}function I(e,t){return function(){var n=Object(i.a)(d().mark((function n(r){var o,i;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(v.actions.settingChanged({id:e,value:t})),n.next=3,Object(l.b)();case 3:return o=n.sent,i=o.settings,n.next=7,i.set(e,t);case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function P(e){return function(t,n){var r=n().settings;return t(I(e,!r[e]))}}function L(e,t){return function(n,o){var i=o().settings[e],a=i.includes(t)?i.filter((function(e){return e!==t})):[].concat(Object(r.a)(i),[t]);return n(I(e,a))}}function _(e){return function(t,n){return R(e)(n())}}var R=function(e){return function(t){return t.settings[e]}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(9),o=n(78),i=!1;function a(){if(r.a.apply(void 0,arguments),!i)return o.b.apply(void 0,arguments)}function c(){if(r.d.apply(void 0,arguments),!i)return o.e.apply(void 0,arguments)}function u(){if(r.f.apply(void 0,arguments),!i)return o.g.apply(void 0,arguments)}function l(){if(r.b.apply(void 0,arguments),!i)return o.c.apply(void 0,arguments)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(r.c)(e,t),!i)return Object(o.d)(e,t)}function f(e,t){var n;return"".concat(t?"".concat(t,": "):"").concat((null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.stack)||(null===e||void 0===e?void 0:e.error)||(null===e||void 0===e?void 0:e.stack)||(null===e||void 0===e?void 0:e.message)||e)}function d(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).formatObjects;try{return e.map((function(e){return"object"===typeof e?t?JSON.stringify(e,null,2):JSON.stringify(e):e})).join(" ")}catch(n){return e.join(" ")}}},function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s,f,d,p=function(e){var t=e.svgRef,n=e.title,o=l(e,c);return i.a.createElement("svg",u({viewBox:"-2 -2 24 24",height:20,width:20,fill:"currentColor",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("g",null,i.a.createElement("path",{d:"M13.289185,5.817505L11.875,7.23175c1.55957,1.55957,1.559937,4.096924,0,5.65686l1.414185,1.414185C15.628723,11.963257,15.628723,8.157043,13.289185,5.817505z"}),i.a.createElement("path",{d:"M16.103149,3.009827l-1.414551,1.414551c3.101196,3.101196,3.101196,8.147583,0,11.248779l1.414185,1.414246C19.984314,13.205872,19.984314,6.89093,16.103149,3.009827z"}),i.a.createElement("path",{d:"M2,6C1.447693,6,1,6.447693,1,7v6c0,0.552307,0.447693,1,1,1h3l6,4V2L5,6H2z"}))))},h=i.a.forwardRef((function(e,t){return i.a.createElement(p,u({svgRef:t},e))})),v=(n.p,["svgRef","title"]);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y,g=function(e){var t=e.svgRef,n=e.title,r=m(e,v);return i.a.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,s||(s=i.a.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"})),f||(f=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),d||(d=i.a.createElement("path",{d:"m9 15 2 2 4-4"})))},w=i.a.forwardRef((function(e,t){return i.a.createElement(g,b({svgRef:t},e))})),x=(n.p,["svgRef","title"]);function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var k,S=function(e){var t=e.svgRef,n=e.title,r=j(e,x);return i.a.createElement("svg",O({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,y||(y=i.a.createElement("g",null,i.a.createElement("path",{d:"M44.9,4.1c-2.1-.6-4.3-1-6.6-1.1-.8,0-1.5-.1-2.3-.1s-1.5,0-2.3.1c-2.3.2-4.5.5-6.6,1.1C13.1,7.9,2.8,20.8,2.8,36s10.2,27.9,24.1,31.9c2.1.6,4.3,1,6.6,1.2.8,0,1.7.1,2.5.1s1.7,0,2.5-.1c2.3-.2,4.5-.6,6.6-1.2,13.9-4,24.1-16.7,24.1-31.9S58.9,7.9,44.9,4.1ZM63.1,33.1h-13.4c-.2-7.6-1.2-15-3-22.2,8.9,3.8,15.3,12.2,16.4,22.2ZM36,8.7c1.4,0,2.8.1,4.2.4,2.2,7.7,3.4,15.7,3.7,24h-15.8c.3-8.3,1.6-16.3,3.7-24,1.4-.2,2.8-.4,4.2-.4ZM25.2,10.9c-1.7,7.1-2.7,14.5-3,22.2h-13.4c1.1-10,7.5-18.3,16.4-22.2ZM8.9,38.9h13.4c.2,7.6,1.1,15,2.8,22.1-8.8-3.9-15.1-12.2-16.2-22.1ZM36,63.3c-1.5,0-3-.2-4.4-.4-2.1-7.7-3.3-15.7-3.5-24h15.8c-.2,8.3-1.4,16.3-3.5,24-1.4.2-2.9.4-4.4.4ZM47,61c1.7-7.1,2.6-14.5,2.8-22.1h13.4c-1.1,9.9-7.4,18.2-16.2,22.1Z"}))))},E=i.a.forwardRef((function(e,t){return i.a.createElement(S,O({svgRef:t},e))})),C=(n.p,["svgRef","title"]);function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var P,L=function(e){var t=e.svgRef,n=e.title,r=I(e,C);return i.a.createElement("svg",T({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,k||(k=i.a.createElement("g",null,i.a.createElement("path",{d:"M45.8,21.5v39.9l-14.8-6.3-2.3-1-2.3,1-14.5,6.3V21.5h33.9M51.7,15.7H6v54.7l22.7-9.8,22.9,9.8V15.7h0Z"}),i.a.createElement("polygon",{points:"65.8 1.7 20.1 1.7 20.1 7.6 59.9 7.6 59.9 52.9 65.8 55.8 65.8 1.7 65.8 1.7"}))))},_=i.a.forwardRef((function(e,t){return i.a.createElement(L,T({svgRef:t},e))})),R=(n.p,["svgRef","title"]);function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var A,D,F,z,B,H=function(e){var t=e.svgRef,n=e.title,r=M(e,R);return i.a.createElement("svg",N({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,P||(P=i.a.createElement("path",{d:"M20,2H10C8.897,2,8,2.897,8,4v4H4c-1.103,0-2,0.897-2,2v10c0,1.103,0.897,2,2,2h10c1.103,0,2-0.897,2-2v-4h4 c1.103,0,2-0.897,2-2V4C22,2.897,21.103,2,20,2z M4,20V10h10l0.002,10H4z M20,14h-4v-4c0-1.103-0.897-2-2-2h-4V4h10V14z"})))},U=i.a.forwardRef((function(e,t){return i.a.createElement(H,N({svgRef:t},e))})),W=(n.p,n(178)),q=["svgRef","title"];function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var K,$=function(e){var t=e.svgRef,n=e.title,r=V(e,q);return i.a.createElement("svg",G({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,A||(A=i.a.createElement("path",{d:"M3 6h18"})),D||(D=i.a.createElement("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"})),F||(F=i.a.createElement("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})),z||(z=i.a.createElement("line",{x1:10,x2:10,y1:11,y2:17})),B||(B=i.a.createElement("line",{x1:14,x2:14,y1:11,y2:17})))},Y=i.a.forwardRef((function(e,t){return i.a.createElement($,G({svgRef:t},e))})),Q=(n.p,["svgRef","title"]);function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var J,ee,te=function(e){var t=e.svgRef,n=e.title,r=Z(e,Q);return i.a.createElement("svg",X({height:16,width:16,viewBox:"-2 -2 20 20",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,K||(K=i.a.createElement("path",{d:"M2,17.0024554 L2,9.99754465 C2,9.4463114 2.44771525,9 3,9 C3.55613518,9 4,9.44902676 4,10.0029293 L4,16 L16,16 L16,10.0029293 C16,9.43788135 16.4477153,9 17,9 C17.5561352,9 18,9.44661595 18,9.99754465 L18,17.0024554 C18,17.5536886 17.5518945,18 16.9991283,18 L3.00087166,18 C2.44463086,18 2,17.553384 2,17.0024554 Z M11,13 L9,13 L9,6 L6.99895656,6 C6.44266033,6 6.31604759,5.68395241 6.70591205,5.29408795 L10,2 L13.2940879,5.29408795 C13.6861267,5.68612671 13.5527519,6 13.0010434,6 L11,6 L11,13 Z",transform:"translate(-2 -2)"})))},ne=i.a.forwardRef((function(e,t){return i.a.createElement(te,X({svgRef:t},e))})),re=(n.p,["svgRef","title"]);function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ae,ce,ue,le,se=function(e){var t=e.svgRef,n=e.title,r=ie(e,re);return i.a.createElement("svg",oe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,J||(J=i.a.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"})),ee||(ee=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})))},fe=i.a.forwardRef((function(e,t){return i.a.createElement(se,oe({svgRef:t},e))})),de=(n.p,["svgRef","title"]);function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ve,be,me,ye=function(e){var t=e.svgRef,n=e.title,r=he(e,de);return i.a.createElement("svg",pe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,ae||(ae=i.a.createElement("path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4"})),ce||(ce=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),ue||(ue=i.a.createElement("path",{d:"m8 12.5-5 5"})),le||(le=i.a.createElement("path",{d:"m3 12.5 5 5"})))},ge=i.a.forwardRef((function(e,t){return i.a.createElement(ye,pe({svgRef:t},e))})),we=(n.p,["svgRef","title"]);function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var je,ke,Se,Ee=function(e){var t=e.svgRef,n=e.title,r=Oe(e,we);return i.a.createElement("svg",xe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,ve||(ve=i.a.createElement("path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4"})),be||(be=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),me||(me=i.a.createElement("path",{d:"m3 15 2 2 4-4"})))},Ce=i.a.forwardRef((function(e,t){return i.a.createElement(Ee,xe({svgRef:t},e))})),Te=(n.p,["svgRef","title"]);function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Le,_e=function(e){var t=e.svgRef,n=e.title,r=Pe(e,Te);return i.a.createElement("svg",Ie({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,je||(je=i.a.createElement("path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"})),ke||(ke=i.a.createElement("path",{d:"M6.453 15h11.094"})),Se||(Se=i.a.createElement("path",{d:"M8.5 2h7"})))},Re=i.a.forwardRef((function(e,t){return i.a.createElement(_e,Ie({svgRef:t},e))})),Ne=(n.p,["svgRef","title"]);function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var De,Fe=function(e){var t=e.svgRef,n=e.title,r=Ae(e,Ne);return i.a.createElement("svg",Me({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Le||(Le=i.a.createElement("g",null,i.a.createElement("path",{d:"M46.9,16.4l-9.1-9.1H13.2v57.5h66.8V16.4h-33ZM74.2,39v19.9H18.9V13h16.5l9.1,9.1h29.7"}))))},ze=i.a.forwardRef((function(e,t){return i.a.createElement(Fe,Me({svgRef:t},e))})),Be=(n.p,["svgRef","title"]);function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var We,qe=function(e){var t=e.svgRef,n=e.title,r=Ue(e,Be);return i.a.createElement("svg",He({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,De||(De=i.a.createElement("path",{d:"M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z"})))},Ge=i.a.forwardRef((function(e,t){return i.a.createElement(qe,He({svgRef:t},e))})),Ve=(n.p,["svgRef","title"]);function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ye,Qe=function(e){var t=e.svgRef,n=e.title,r=$e(e,Ve);return i.a.createElement("svg",Ke({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,We||(We=i.a.createElement("g",null,i.a.createElement("path",{d:"M36,63.3c15.1,0,27.3-12.3,27.3-27.3,0-15.1-12.3-27.3-27.3-27.3s-19,5.5-23.7,13.8h11.5v5.9H2.8v-5.9s0-15.2,0-15.2h5.9v10C14.7,8.5,24.6,2.8,36,2.8c18.3,0,33.2,14.9,33.2,33.2,0,18.3-14.9,33.2-33.2,33.2-18.3,0-33.2-14.9-33.2-33.2h5.9c0,15.1,12.3,27.3,27.3,27.3Z"}),i.a.createElement("polygon",{points:"38.8 22.3 32.9 22.3 32.9 36.7 44 48.3 48.2 44.2 38.8 34.4 38.8 22.3"}))))},Xe=i.a.forwardRef((function(e,t){return i.a.createElement(Qe,Ke({svgRef:t},e))})),Ze=(n.p,["svgRef","title"]);function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tt,nt=function(e){var t=e.svgRef,n=e.title,r=et(e,Ze);return i.a.createElement("svg",Je({height:16,width:16,viewBox:"-2 -2 20 20",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Ye||(Ye=i.a.createElement("path",{d:"M32,17.0024554 L32,9.99754465 C32,9.4463114 32.4477153,9 33,9 C33.5561352,9 34,9.44902676 34,10.0029293 L34,16 L46,16 L46,10.0029293 C46,9.43788135 46.4477153,9 47,9 C47.5561352,9 48,9.44661595 48,9.99754465 L48,17.0024554 C48,17.5536886 47.5518945,18 46.9991283,18 L33.0008717,18 C32.4446309,18 32,17.553384 32,17.0024554 Z M40,2 C40.5561352,2 41,2.44902676 41,3.00292933 L41,9 L43.0010434,9 C43.5573397,9 43.6839524,9.31604759 43.2940879,9.70591205 L40,13 L36.7059121,9.70591205 C36.3138733,9.31387329 36.4472481,9 36.9989566,9 L39,9 L39,3.00292933 C39,2.43788135 39.4477153,2 40,2 Z",transform:"translate(-32 -2)"})))},rt=i.a.forwardRef((function(e,t){return i.a.createElement(nt,Je({svgRef:t},e))})),ot=(n.p,["svgRef","title"]);function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ct,ut,lt,st=function(e){var t=e.svgRef,n=e.title,r=at(e,ot);return i.a.createElement("svg",it({height:24,width:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,tt||(tt=i.a.createElement("path",{d:"M3 11h18v1H3zm14.62-1l-2.29-6.1c-.19-.5-.74-.77-1.25-.6L12 4l-2.09-.7c-.51-.17-1.06.1-1.25.6L6.38 10h11.24zm-1.12 3c-1.66 0-3.04 1.16-3.4 2.71-.84-.36-1.62-.26-2.2-.01A3.503 3.503 0 0 0 7.5 13C5.57 13 4 14.57 4 16.5S5.57 20 7.5 20c1.84 0 3.33-1.42 3.47-3.22.3-.21 1.09-.6 2.06.02.16 1.79 1.64 3.2 3.47 3.2 1.93 0 3.5-1.57 3.5-3.5S18.43 13 16.5 13zm-9 6a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5zm9 0a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z"})))},ft=i.a.forwardRef((function(e,t){return i.a.createElement(st,it({svgRef:t},e))})),dt=(n.p,n(179)),pt=["svgRef","title"];function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var bt,mt=function(e){var t=e.svgRef,n=e.title,r=vt(e,pt);return i.a.createElement("svg",ht({viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,ref:t},r),n?i.a.createElement("title",null,n):null,ct||(ct=i.a.createElement("path",{d:"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"})),ut||(ut=i.a.createElement("path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"})),lt||(lt=i.a.createElement("path",{d:"m17 10 4 4-4 4"})))},yt=i.a.forwardRef((function(e,t){return i.a.createElement(mt,ht({svgRef:t},e))})),gt=(n.p,["svgRef","title"]);function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ot,jt,kt=function(e){var t=e.svgRef,n=e.title,r=xt(e,gt);return i.a.createElement("svg",wt({focusable:"false",viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,bt||(bt=i.a.createElement("path",{fillRule:"evenodd",d:"M16 9V4h2V2H6v2h2v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3z"})))},St=i.a.forwardRef((function(e,t){return i.a.createElement(kt,wt({svgRef:t},e))})),Et=(n.p,["svgRef","title"]);function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var It,Pt=function(e){var t=e.svgRef,n=e.title,r=Tt(e,Et);return i.a.createElement("svg",Ct({focusable:"false",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Ot||(Ot=i.a.createElement("path",{d:"M20.49,19l-5.73-5.73C15.53,12.2,16,10.91,16,9.5C16,5.91,13.09,3,9.5,3S3,5.91,3,9.5C3,13.09,5.91,16,9.5,16 c1.41,0,2.7-0.47,3.77-1.24L19,20.49L20.49,19z M5,9.5C5,7.01,7.01,5,9.5,5S14,7.01,14,9.5S12,14,9.5,14S5,12,5,9.5z"})),jt||(jt=i.a.createElement("path",{d:"M0,0h24v24H0V0z",fill:"none"})))},Lt=i.a.forwardRef((function(e,t){return i.a.createElement(Pt,Ct({svgRef:t},e))})),_t=(n.p,["svgRef","title"]);function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Mt,At,Dt,Ft=function(e){var t=e.svgRef,n=e.title,r=Nt(e,_t);return i.a.createElement("svg",Rt({viewBox:"0 0 24 24",height:24,width:24,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,It||(It=i.a.createElement("path",{d:"M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 L4.64765383,4 C5.0797487,2.5871829 6.41189658,1.60369786 8,1.60369786 C9.58810342,1.60369786 10.9202513,2.5871829 11.3523462,4 L21,4 C21.5522847,4 22,4.44771525 22,5 C22,5.55228475 21.5522847,6 21,6 L11.3550607,6 C10.9247861,7.44574447 9.58551032,8.5 8,8.5 C6.41448968,8.5 5.07521393,7.44574447 4.64493934,6 L3,6 Z M8,22.5 C6.41448968,22.5 5.07521393,21.4457445 4.64493934,20 L3,20 C2.44771525,20 2,19.5522847 2,19 C2,18.4477153 2.44771525,18 3,18 L4.64493934,18 C5.07521393,16.5542555 6.41448968,15.5 8,15.5 C9.58551032,15.5 10.9247861,16.5542555 11.3550607,18 L21,18 C21.5522847,18 22,18.4477153 22,19 C22,19.5522847 21.5522847,20 21,20 L11.3550607,20 C10.9247861,21.4457445 9.58551032,22.5 8,22.5 Z M3,13 C2.44771525,13 2,12.5522847 2,12 C2,11.4477153 2.44771525,11 3,11 L12.6449393,11 C13.0752139,9.55425553 14.4144897,8.5 16,8.5 C17.5855103,8.5 18.9247861,9.55425553 19.3550607,11 L21,11 C21.5522847,11 22,11.4477153 22,12 C22,12.5522847 21.5522847,13 21,13 L19.3550607,13 C18.9247861,14.4457445 17.5855103,15.5 16,15.5 C14.4144897,15.5 13.0752139,14.4457445 12.6449393,13 L3,13 Z M16,13.5 C16.8284271,13.5 17.5,12.8284271 17.5,12 C17.5,11.1715729 16.8284271,10.5 16,10.5 C15.1715729,10.5 14.5,11.1715729 14.5,12 C14.5,12.8284271 15.1715729,13.5 16,13.5 Z M8,20.5 C8.82842712,20.5 9.5,19.8284271 9.5,19 C9.5,18.1715729 8.82842712,17.5 8,17.5 C7.17157288,17.5 6.5,18.1715729 6.5,19 C6.5,19.8284271 7.17157288,20.5 8,20.5 Z M8,6.5 C8.82842712,6.5 9.5,5.82842712 9.5,5 C9.5,4.20497688 8.86217156,3.60369786 8,3.60369786 C7.13782844,3.60369786 6.5,4.20497688 6.5,5 C6.5,5.82842712 7.17157288,6.5 8,6.5 Z"})))},zt=i.a.forwardRef((function(e,t){return i.a.createElement(Ft,Rt({svgRef:t},e))})),Bt=(n.p,["svgRef","title"]);function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wt,qt,Gt=function(e){var t=e.svgRef,n=e.title,r=Ut(e,Bt);return i.a.createElement("svg",Ht({viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,Mt||(Mt=i.a.createElement("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"})),At||(At=i.a.createElement("path",{d:"M9 18h6"})),Dt||(Dt=i.a.createElement("path",{d:"M10 22h4"})))},Vt=i.a.forwardRef((function(e,t){return i.a.createElement(Gt,Ht({svgRef:t},e))})),Kt=(n.p,["svgRef","title"]);function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qt,Xt=function(e){var t=e.svgRef,n=e.title,r=Yt(e,Kt);return i.a.createElement("svg",$t({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Wt||(Wt=i.a.createElement("path",{d:"M12,9c-1.626,0-3,1.374-3,3s1.374,3,3,3s3-1.374,3-3S13.626,9,12,9z"})),qt||(qt=i.a.createElement("path",{d:"M20,5h-2.586l-2.707-2.707C14.52,2.105,14.266,2,14,2h-4C9.734,2,9.48,2.105,9.293,2.293L6.586,5H4C2.897,5,2,5.897,2,7v11 c0,1.103,0.897,2,2,2h16c1.103,0,2-0.897,2-2V7C22,5.897,21.103,5,20,5z M12,17c-2.71,0-5-2.29-5-5c0-2.71,2.29-5,5-5s5,2.29,5,5 C17,14.71,14.71,17,12,17z"})))},Zt=i.a.forwardRef((function(e,t){return i.a.createElement(Xt,$t({svgRef:t},e))})),Jt=(n.p,["svgRef","title"]);function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nn,rn=function(e){var t=e.svgRef,n=e.title,r=tn(e,Jt);return i.a.createElement("svg",en({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Qt||(Qt=i.a.createElement("path",{d:"M19.707 14.707c.286-.286.372-.716.217-1.09C19.77 13.244 19.404 13 19 13h-7v2h4.586l-4.293 4.293c-.286.286-.372.716-.217 1.09C12.23 20.756 12.596 21 13 21h7v-2h-4.586L19.707 14.707zM7 3.99L5 3.99 5 15.99 2 15.99 6 19.99 10 15.99 7 15.99zM17 3h-2c-.417 0-.79.259-.937.649l-2.75 7.333h2.137L14.193 9h3.613l.743 1.981h2.137l-2.75-7.333C17.79 3.259 17.417 3 17 3zM14.943 7l.75-2h.613l.75 2H14.943z"})))},on=i.a.forwardRef((function(e,t){return i.a.createElement(rn,en({svgRef:t},e))})),an=(n.p,["svgRef","title"]);function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ln,sn=function(e){var t=e.svgRef,n=e.title,r=un(e,an);return i.a.createElement("svg",cn({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,nn||(nn=i.a.createElement("path",{d:"M6 20L10 16 7 16 7 4 5 4 5 16 2 16zM11 8H20V10H11zM11 12H18V14H11zM11 4H22V6H11zM11 16H16V18H11z"})))},fn=i.a.forwardRef((function(e,t){return i.a.createElement(sn,cn({svgRef:t},e))})),dn=(n.p,["svgRef","title"]);function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vn,bn,mn=function(e){var t=e.svgRef,n=e.title,r=hn(e,dn);return i.a.createElement("svg",pn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,ln||(ln=i.a.createElement("g",null,i.a.createElement("path",{d:"M79.7,31.7h0V8.7H13v54h42.6c3.2,2.2,7,3.5,11.2,3.5,10.8,0,19.6-8.8,19.6-19.6s-2.6-11.2-6.8-14.8ZM18.8,14.5h55v11.4H18.8v-11.4ZM18.8,31.7h35.2c-4.2,3.6-6.8,8.9-6.8,14.8s1.1,7.3,3,10.3h-31.3v-25.2ZM62.5,56.7l-8.6-9.3,4.3-4,4.6,4.9,13-12.1,4,4.3-17.3,16Z"}))))},yn=i.a.forwardRef((function(e,t){return i.a.createElement(mn,pn({svgRef:t},e))})),gn=(n.p,["svgRef","title"]);function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var On,jn,kn,Sn,En=function(e){var t=e.svgRef,n=e.title,r=xn(e,gn);return i.a.createElement("svg",wn({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,vn||(vn=i.a.createElement("path",{d:"M15,16c0.553,0,1-0.448,1-1V9c0-0.552-0.447-1-1-1H9C8.448,8,8,8.448,8,9v6c0,0.552,0.448,1,1,1H15z"})),bn||(bn=i.a.createElement("path",{d:"M5 16h1V8c0-1.104.896-2 2-2h8V5c0-1.104-.896-2-2-2H5C3.896 3 3 3.896 3 5v9C3 15.104 3.896 16 5 16zM8 19c0 1.104.896 2 2 2h9c1.104 0 2-.896 2-2v-9c0-1.104-.896-2-2-2h-1v8c0 1.104-.896 2-2 2H8V19z"})))},Cn=i.a.forwardRef((function(e,t){return i.a.createElement(En,wn({svgRef:t},e))})),Tn=(n.p,["svgRef","title"]);function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ln,_n=function(e){var t=e.svgRef,n=e.title,r=Pn(e,Tn);return i.a.createElement("svg",In({viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:2,ref:t},r),n?i.a.createElement("title",null,n):null,On||(On=i.a.createElement("line",{x1:2,x2:22,y1:2,y2:22})),jn||(jn=i.a.createElement("line",{x1:12,x2:12,y1:17,y2:22})),kn||(kn=i.a.createElement("path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12"})),Sn||(Sn=i.a.createElement("path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89"})))},Rn=i.a.forwardRef((function(e,t){return i.a.createElement(_n,In({svgRef:t},e))})),Nn=(n.p,["svgRef","title"]);function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Dn,Fn=function(e){var t=e.svgRef,n=e.title,r=An(e,Nn);return i.a.createElement("svg",Mn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Ln||(Ln=i.a.createElement("g",null,i.a.createElement("path",{d:"M13,8.7v54h66.6V8.7H13ZM73.9,56.9H18.8v-25.2h55v25.2ZM18.8,25.9v-11.4h55v11.4H18.8Z"}))))},zn=i.a.forwardRef((function(e,t){return i.a.createElement(Fn,Mn({svgRef:t},e))})),Bn=(n.p,["svgRef","title"]);function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wn=function(e){var t=e.svgRef,n=e.title,r=Un(e,Bn);return i.a.createElement("svg",Hn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Dn||(Dn=i.a.createElement("g",null,i.a.createElement("path",{d:"M4.9,17.6v54h66.6V17.6H4.9ZM65.8,65.8H10.7v-25.2h55v25.2h0ZM10.7,34.8v-11.4h55v11.4H10.7Z"}),i.a.createElement("polygon",{points:"22.1 .4 22.1 6.2 57.8 6.2 57.8 6.2 82.9 6.2 82.9 54.4 88.7 54.4 88.7 .4 22.1 .4"}))))},qn=i.a.forwardRef((function(e,t){return i.a.createElement(Wn,Hn({svgRef:t},e))})),Gn=(n.p,n(89)),Vn=Object(Gn.a)(o.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link"),Kn=Object(Gn.a)(o.createElement("path",{d:"M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zM11.48 20v-6.26H8L13 4v6.26h3.35L11.48 20z"}),"OfflineBolt"),$n=Object(Gn.a)(o.createElement("path",{d:"M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zm0 17.96c-4.4 0-7.98-3.58-7.98-7.98S7.6 4.02 12 4.02 19.98 7.6 19.98 12 16.4 19.98 12 19.98zM12.75 5l-4.5 8.5h3.14V19l4.36-8.5h-3z"}),"OfflineBoltOutlined"),Yn=Object(Gn.a)(o.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline"),Qn=Object(Gn.a)(o.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),Xn=Object(Gn.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Zn=Object(Gn.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Jn=Object(Gn.a)(o.createElement("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zm-7-1h2v-4h4V9h-4V5h-2v4H9v2h4z"}),"AddToPhotosOutlined"),er=Object(Gn.a)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),tr=Object(Gn.a)(o.createElement("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"}),"FavoriteBorder"),nr=Object(Gn.a)(o.createElement("path",{d:"M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),rr=Object(Gn.a)(o.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),or=Object(Gn.a)(o.createElement("path",{d:"M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff"),ir=Object(Gn.a)(o.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),ar=n(260),cr=Object(Gn.a)(o.createElement("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}),"CallMade"),ur=Object(Gn.a)(o.createElement("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline"),lr=Object(Gn.a)(o.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code"),sr=n(261),fr=Object(Gn.a)(o.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),dr=Object(Gn.a)(o.createElement("path",{d:"M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"}),"MergeTypeOutlined"),pr=Object(Gn.a)(o.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop"),hr=Object(Gn.a)(o.createElement("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"}),"VolumeOff"),vr=Object(Gn.a)(o.createElement("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder"),br=Object(Gn.a)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block"),mr=Object(Gn.a)(o.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay"),yr=Object(Gn.a)(o.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),gr=Object(Gn.a)(o.createElement("path",{d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"}),"DoneAll"),wr=Object(Gn.a)(o.createElement("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share"),xr=Object(Gn.a)(o.createElement("path",{d:"M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline"),Or=Object(Gn.a)(o.createElement("path",{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}),"TextFields"),jr=Object(Gn.a)(o.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");n.d(t,"UrlIcon",(function(){return kr})),n.d(t,"BbcodeIcon",(function(){return Sr})),n.d(t,"CsvIcon",(function(){return Er})),n.d(t,"JsonIcon",(function(){return Cr})),n.d(t,"AudibleIcon",(function(){return Tr})),n.d(t,"BrowserIcon",(function(){return Ir})),n.d(t,"BackupIcon",(function(){return Pr})),n.d(t,"CollectionIcon",(function(){return Lr})),n.d(t,"CopyIcon",(function(){return _r})),n.d(t,"DefaultFavIconIcon",(function(){return Rr})),n.d(t,"DeleteIcon",(function(){return Nr})),n.d(t,"ExportIcon",(function(){return Mr})),n.d(t,"FileIcon",(function(){return Ar})),n.d(t,"FileBadIcon",(function(){return Dr})),n.d(t,"FileGoodIcon",(function(){return Fr})),n.d(t,"FlaskIcon",(function(){return zr})),n.d(t,"FolderIcon",(function(){return Br})),n.d(t,"HeartIcon",(function(){return Hr})),n.d(t,"HistoryIcon",(function(){return Ur})),n.d(t,"ImportIcon",(function(){return Wr})),n.d(t,"IncognitoIcon",(function(){return qr})),n.d(t,"MarkdownIcon",(function(){return Gr})),n.d(t,"PasteIcon",(function(){return Vr})),n.d(t,"PinIcon",(function(){return Kr})),n.d(t,"SearchIcon",(function(){return $r})),n.d(t,"SettingsIcon",(function(){return Yr})),n.d(t,"SnapshotIcon",(function(){return Qr})),n.d(t,"SortTitleIcon",(function(){return Xr})),n.d(t,"SortUrlIcon",(function(){return Zr})),n.d(t,"ThisWindowIcon",(function(){return Jr})),n.d(t,"TipIcon",(function(){return eo})),n.d(t,"UnifyIcon",(function(){return to})),n.d(t,"UnpinIcon",(function(){return no})),n.d(t,"WindowIcon",(function(){return ro})),n.d(t,"WindowsIcon",(function(){return oo})),n.d(t,"LinkIcon",(function(){return io})),n.d(t,"AutoDetectOnIcon",(function(){return Kn})),n.d(t,"AutoDetectOffIcon",(function(){return $n})),n.d(t,"AddIcon",(function(){return Yn})),n.d(t,"AboutIcon",(function(){return Qn})),n.d(t,"CheckboxCheckedIcon",(function(){return Xn})),n.d(t,"CheckboxEmptyIcon",(function(){return Zn})),n.d(t,"CloneIcon",(function(){return Jn})),n.d(t,"CloseIcon",(function(){return er})),n.d(t,"CloseTabIcon",(function(){return er})),n.d(t,"DonateIcon",(function(){return tr})),n.d(t,"EditIcon",(function(){return nr})),n.d(t,"EnterIcon",(function(){return rr})),n.d(t,"ErrorIcon",(function(){return or})),n.d(t,"FilterIcon",(function(){return ir})),n.d(t,"GearIcon",(function(){return ar.a})),n.d(t,"GoToIcon",(function(){return cr})),n.d(t,"HelpIcon",(function(){return ur})),n.d(t,"HtmlIcon",(function(){return lr})),n.d(t,"ImageIcon",(function(){return sr.a})),n.d(t,"KebabIcon",(function(){return fr})),n.d(t,"MergeIcon",(function(){return dr})),n.d(t,"MoveToTopIcon",(function(){return pr})),n.d(t,"MutedIcon",(function(){return hr})),n.d(t,"NotFoundIcon",(function(){return or})),n.d(t,"RateIcon",(function(){return vr})),n.d(t,"RemoveIcon",(function(){return br})),n.d(t,"RestoreIcon",(function(){return mr})),n.d(t,"ArrowUpIcon",(function(){return yr})),n.d(t,"SelectDuplicatesIcon",(function(){return gr})),n.d(t,"ShareIcon",(function(){return wr})),n.d(t,"SuccessIcon",(function(){return xr})),n.d(t,"TitleIcon",(function(){return Or})),n.d(t,"WarningIcon",(function(){return jr}));var kr=function(){return i.a.createElement("span",{style:{fontWeight:600,letterSpacing:1}},"://")},Sr=function(){return i.a.createElement("span",{style:{fontSize:"0.9rem",fontWeight:600}},"BB")},Er=function(){return i.a.createElement("span",{style:{fontWeight:600,padding:"0 3px"}},'","')},Cr=function(){return i.a.createElement("span",{style:{fontSize:"0.9rem",fontWeight:600,padding:"0 3px"}},"{ }")},Tr=Object(a.a)(h),Ir=Object(a.a)(E),Pr=Object(a.a)(w,{noFill:!0}),Lr=Object(a.a)(Object(a.d)(_,.86,.86)),_r=Object(a.a)(U),Rr=Object(a.a)(W.a),Nr=Object(a.a)(Y,{noFill:!0}),Mr=Object(a.a)(ne),Ar=Object(a.a)(fe,{noFill:!0}),Dr=Object(a.a)(ge,{noFill:!0}),Fr=Object(a.a)(Ce,{noFill:!0}),zr=Object(a.a)(Re,{noFill:!0}),Br=Object(a.a)(ze),Hr=Object(a.a)(Object(a.d)(Ge,.9,.9)),Ur=Object(a.a)(Xe),Wr=Object(a.a)(rt),qr=Object(a.a)(Object(a.d)(ft,.82,.82)),Gr=Object(a.a)(Object(a.d)(dt.a,1.1,1.4)),Vr=Object(a.a)(Object(a.d)(yt,.9,.9),{noFill:!0}),Kr=Object(a.a)(St),$r=Object(a.a)(Lt),Yr=Object(a.a)(zt),Qr=Object(a.a)(Zt),Xr=Object(a.a)(on),Zr=Object(a.a)(fn),Jr=Object(a.a)(yn),eo=Object(a.a)(Vt),to=Object(a.a)(Cn),no=Object(a.a)(Object(a.d)(Rn,.86,.86)),ro=Object(a.a)(zn),oo=Object(a.a)(qn),io=Object(a.c)(Vn,-45)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(68),o=n(16);function i(e){Object(o.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(r.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(91);function o(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(r.a)(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,a=!0,c=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(c)throw i}}}}},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n.n(i),c=n(154),u=n.n(c),l=n(222),s=n(257),f=n(205),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,c=t.withTheme,d=void 0!==c&&c,p=t.name,h=Object(o.a)(t,["defaultTheme","withTheme","name"]);var v=p,b=Object(l.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:p||n.displayName,classNamePrefix:v},h)),m=a.a.forwardRef((function(e,t){e.classes;var c,u=e.innerRef,l=Object(o.a)(e,["classes","innerRef"]),h=b(Object(r.a)({},n.defaultProps,e)),v=l;return("string"===typeof p||d)&&(c=Object(f.a)()||i,p&&(v=Object(s.a)({theme:c,name:p,props:l})),d&&!v.theme&&(v.theme=c)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:h},v))}));return u()(m,n),m}},p=n(143);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t,n){"use strict";n.d(t,"i",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"h",(function(){return b})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return y}));var r=n(3),o=n(14),i=n(1),a=n(90),c=n.n(a),u=n(12);function l(e,t){return t?Object.fromEntries(t.map((function(t){return[t,e[t]]})).filter((function(e){return void 0!==Object(o.a)(e,2)[1]}))):Object(i.a)({},e)}function s(e,t){return Object.fromEntries(Object.entries(e).filter((function(e){var n=Object(o.a)(e,2),r=n[0],i=n[1];return t(i,r)})))}function f(e){return s(e,(function(e){return null!=e}))}function d(e,t){return Object.fromEntries(Object.entries(e).map((function(e){var n=Object(o.a)(e,2),r=n[0],i=n[1];return[r,t(i,r)]})))}function p(e,t){if(c()(e)&&c()(t)||c()(e)&&void 0===t||void 0===e&&c()(t)){e=void 0===e?{}:e,t=void 0===t?{}:t;var n=Object(u.q)([].concat(Object(r.a)(Object.keys(e)),Object(r.a)(Object.keys(t))));return Object.fromEntries(n.map((function(n){return[n,p(e[n],t[n])]})))}return Object(u.c)([e,t])}function h(e){var t=e.slice(1);return t.length||(t=[void 0]),t.reduce(p,e[0])}function v(e,t){return void 0!==e[t]}function b(e,t){return void 0===e[t]}function m(e,t){for(var n=Object.assign({},e,t),r=0,o=Object.keys(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var h=null===(r=globalThis.chrome)||void 0===r||null===(o=r.storage)||void 0===o?void 0:o.local,v=null===(i=globalThis.chrome)||void 0===i||null===(a=i.storage)||void 0===a?void 0:a.session;function b(){return!!h}function m(e,t){return y.apply(this,arguments)}function y(){return(y=Object(u.a)(p().mark((function e(t,n){var r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=P(n)){e.next=3;break}return e.abrupt("return");case 3:if(null!=t){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,r.get(t);case 7:return e.t0=t,o=e.sent[e.t0],e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return m(e,"session")}function w(e,t,n){return x.apply(this,arguments)}function x(){return(x=Object(u.a)(p().mark((function e(t,n,r){var o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=P(r)){e.next=3;break}return e.abrupt("return");case 3:if(null!=t){e.next=5;break}return e.abrupt("return");case 5:if(void 0!==n){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,o.set(Object(c.a)({},t,n));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e,t){return w(e,t,"session")}function j(e){return k.apply(this,arguments)}function k(){return(k=Object(u.a)(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return");case 2:if(null!=t){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,h.remove(t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(){return E.apply(this,arguments)}function E(){return(E=Object(u.a)(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return",[]);case 2:if(!h.getKeys){e.next=4;break}return e.abrupt("return",h.getKeys());case 4:return e.next=6,h.get(null);case 6:return t=e.sent,e.abrupt("return",Object.keys(t));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return T.apply(this,arguments)}function T(){return(T=Object(u.a)(p().mark((function e(t){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null!==(n=null===h||void 0===h?void 0:h.getBytesInUse(t))&&void 0!==n?n:0);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.throttle,o=void 0===r?0:r,i=n.skipInitial;if(h){var a=!0,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.rateLimit,r=t.listen,o="throttle"===(null===n||void 0===n?void 0:n.type)?s()(e,n.delay,{leading:!0,trailing:!0}):"debounce"===(null===n||void 0===n?void 0:n.type)?d()(e,n.delay):e;return function(e,t){"local"===t&&(r&&!r.some((function(t){return t in e}))||o(e))}}((function(n){a&&e in n&&t(n[e].newValue)}),{rateLimit:{type:"throttle",delay:o},listen:[e]});return i||m(e).then((function(e){a&&t(e)})),globalThis.chrome.storage.onChanged.addListener(c),function(){a=!1,globalThis.chrome.storage.onChanged.removeListener(c)}}}function P(e){return"session"===e?v:h}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return v}));var r=n(57),o=n(11),i=n(7),a=n(17),c=n(56),u=n(63),l=n(112),s=n(156),f=n(163),d=n(99),p=Object(r.a)({reducer:{content:i.b,settings:a.h,notification:c.c,confirmation:u.b,setEdit:l.b,itemEdit:s.b,unitAddSession:f.a,criticalError:d.c}}),h=o.b,v=o.c},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(2),o=n(14),i=n(0),a=n(110),c=n(144);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l,s={},f=function(){var e=Object(i.useState)(null),t=Object(o.a)(e,2),n=t[0],r=t[1];return Object(i.useEffect)((function(){d().then((function(e){r(e)}))}),[]),n};function d(){return l||(l=function(){return p.apply(this,arguments)}()),l}function p(){return(p=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s.id||!s.settings){e.next=2;break}return e.abrupt("return",s);case 2:return t=Object(a.a)(c.a),e.next=5,t.get("clientId");case 5:if(s.id=e.sent,s.id){e.next=8;break}throw new Error("local db does not specify a client id");case 8:return e.next=10,t.get("clientCreated");case 10:return s.created=e.sent,s.settings=t,e.abrupt("return",s);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(1),o=n(14),i=n(201),a=n.n(i),c=n(12);function u(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.thickness,n=void 0===t?7:t,o=e.spacing,i=void 0===o?3:o,a=e.color,c=void 0===a?"transparent":a,u=e.hoverColor,l=e.focusColor,s=e.backgroundColor,f=void 0===s?"transparent":s,d=n+2*i;return Object(r.a)(Object(r.a)({"&::-webkit-scrollbar-track":{backgroundColor:f},"&::-webkit-scrollbar-track-piece":{backgroundColor:f},"&::-webkit-scrollbar":{width:d,height:d},"&::-webkit-scrollbar-thumb":{borderRadius:1e3,backgroundColor:c,border:"".concat(i,"px solid ").concat(f),backgroundClip:"padding-box"},"&::-webkit-scrollbar-corner":{backgroundColor:f},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(c," 50% 100%)"),border:"6px solid ".concat(f)}},u?{"&:hover":{"&::-webkit-scrollbar-thumb":{backgroundColor:u},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(u," 50% 100%)")}}}:null),l?{"&:focus, &:focus:hover":{"&::-webkit-scrollbar-thumb":{backgroundColor:l},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(l," 50% 100%)")}}}:null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(204);function o(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";function r(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var o=n(12);n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i=["http","https","www","file"];function a(e){return e?c(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text").matchParts.length:0}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text";if(!(null===t||void 0===t?void 0:t.length)||!e)return{parts:e?[e]:[],matchParts:[]};var a=t.map((function(e){return e.toLowerCase()})),c=Object(o.q)("url"===n?a.filter((function(e){return!i.includes(e)})):a),u="text"===n?function(e,t){var n="\\b(".concat(t.map(r).join("|"),")"),o=new RegExp(n,"gi");return e.split(o)}(e,c):function(e,t){var n="\\b(".concat(t.map(r).join("|"),")"),o=new RegExp(n,"gi");return e.split(o)}(e,c),l=u.filter((function(e){return c.includes(e.toLowerCase())}));return{parts:u,matchParts:l}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(1),o=n(14),i=n(0),a=n.n(i),c=n(184),u=n(176),l=n.n(u),s=n(221),f=function(e){return e?{minWidth:0,padding:12,borderRadius:1e3}:void 0},d=function(e){var t=e.selected,n=e.selectedColor,r=e.standardColor,o=e.stateTreatment,i=e.disabled,a=e.palette;if(t&&!i){if("primary"===n||"secondary"===n)return p(n,o,a);if("hover"===n&&r)return p(r,o,a);var c=a.nxsAction[n]||a.nxsAction.hover||a.nxsAction.focus||a.nxsAction.active||a.nxsAction.selected;return{color:c.contrastText,backgroundColor:c.main}}},p=function(e,t,n){return{color:n[e].contrastText,backgroundColor:n[e][h(t,n.type)]}},h=function(e,t){return"dark"===e||"light"===e?e:"match"===e?t:"dark"===t?"light":"dark"},v=l()((function(e){var t=e.selected,n=e.selectedColor,o=e.label,i=e.stateTreatment,a=e.round,u=e.standardColor,l=e.disabled;return Object(c.a)((function(e){return{Button:Object(r.a)(Object(r.a)({transition:e.transitions.create(["background-color"],{duration:e.transitions.duration.shortest}),minWidth:76},f(a)),{},{"&&&&":Object(r.a)({},d({selected:t,selectedColor:n,standardColor:u,stateTreatment:i,disabled:l,palette:e.palette}))}),text:{padding:a?void 0:"6px 16px","&:hover":{color:e.palette.nxsAction.hover.contrastText,backgroundColor:e.palette.nxsAction.hover.main},"&:focus":{color:e.palette.nxsAction.focus.contrastText,backgroundColor:e.palette.nxsAction.focus.main},"&:active":{color:e.palette.nxsAction.active.contrastText,backgroundColor:e.palette.nxsAction.active.main}},outlined:{"&:hover":{color:e.palette.nxsAction.hover.contrastText,backgroundColor:e.palette.nxsAction.hover.main},"&:focus":{color:e.palette.nxsAction.focus.contrastText,backgroundColor:e.palette.nxsAction.focus.main},"&:active":{color:e.palette.nxsAction.active.contrastText,backgroundColor:e.palette.nxsAction.active.main}},contained:{"&.Mui-disabled":{backgroundColor:"transparent"}},containedPrimary:{"&:hover, &:focus, &:active":p("primary",i,e.palette)},containedSecondary:{"&:hover, &:focus, &:active":p("secondary",i,e.palette)},startIcon:{marginRight:o?void 0:0,marginLeft:o?void 0:0}}}))}),(function(e){var t=e.selected,n=e.selectedColor,r=e.label,o=e.stateTreatment,i=e.round,a=e.standardColor,c=e.disabled;return"".concat(i,"*").concat(t,"*").concat(c,"*").concat(o,"*").concat(n,"*").concat(a||"","*").concat(r)})),b=function(e){var t=e.round,n=void 0!==t&&t,r=e.color,i=e.outlined,c=e.selected,u=void 0!==c&&c,l=e.selectedColor,f=void 0===l?"selected":l,d=e.icon,p=e.label,h=void 0===p?"":p,b=e.className,m=e.onClick,y=e.disabled,g=void 0!==y&&y,w=e.size,x=e.type,O=e.autoFocus,j=e.tabIndex,k=e.link,S=function(e){var t=(e||"").split("-"),n=Object(o.a)(t,2),r=n[0],i=n[1];return{standardColor:r||void 0,stateTreatment:void 0===i?"invert":i}}(r),E=S.standardColor,C=S.stateTreatment,T=v({selected:u,selectedColor:f,label:h,stateTreatment:C,round:n,standardColor:E,disabled:g})(),I=a.a.createElement(s.a,{className:b,classes:{root:T.Button,text:T.text,outlined:T.outlined,contained:T.contained,containedPrimary:T.containedPrimary,containedSecondary:T.containedSecondary,startIcon:T.startIcon},color:E,startIcon:d,variant:E?"contained":i?"outlined":"text",onClick:function(e){(null===m||void 0===m?void 0:m(e))&&e.currentTarget.blur(),e.stopPropagation()},disabled:g,size:w,type:x,autoFocus:O,tabIndex:j},h);return k?a.a.createElement("a",{tabIndex:-1,href:k,target:"_blank",rel:"noopener"},I):I}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(0),o=n.n(r),i=n(184),a=Object(i.a)((function(){return{root:{fill:function(e){return e.noFill?"none":"currentColor"},width:"1em",height:"1em",display:"inline-block",fontSize:"1.5rem",transition:"fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",flexShrink:0,userSelect:"none"}}}));function c(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).noFill,n=void 0!==t&&t;return function(t){var r=a({noFill:n});return o.a.createElement(e,Object.assign({className:r.root},t))}}var u=Object(i.a)((function(){return{root:{padding:1,boxSizing:"border-box"}}}));function l(e){return function(t){var n=u();return o.a.createElement(e,Object.assign({className:n.root},t))}}function s(e,t){return function(n){return o.a.createElement(e,Object.assign({},n,{style:{rotate:"".concat(t,"deg")}}))}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return function(r){return o.a.createElement(e,Object.assign({},r,{style:{scale:"".concat(t," ").concat(n)}}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(10),o=10;function i(e,t,n,o){var i=e.count,a=void 0===i?1:i,c=e.includeCount,u=void 0!==c&&c;return 1===a?u?"1 ".concat(t):t:0===a&&o?u?o.withCount:o.bare:u?"".concat(r.a.integer(a)," ").concat(n):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),o=n(35),i={tabsSaved:function(){return"".concat(r.a.tab({count:o.a})," saved")},collectionSaved:function(){return"".concat(r.a.collection()," saved")},collectionCloned:function(){return"".concat(r.a.collection()," cloned")},collectionsCombined:function(e){return"".concat(r.a.collection({count:e,includeCount:!0})," combined")},collectionDeleted:function(e){return e?"".concat(r.a.collection(),' "').concat(e,'" deleted'):"".concat(r.a.collection()," deleted")},collectionsDeleted:function(e){return"".concat(r.a.collection({count:e,includeCount:!0})," deleted")},tryAgain:function(){return"try again"},failedToDeleteCollection:function(e){return e?"failed to delete ".concat(r.a.collection(),' "').concat(e,'"'):"failed to delete ".concat(r.a.collection())},failedToDeleteCollections:function(e){return"failed to delete ".concat(r.a.collection({count:e,includeCount:!0}))},failedToDeleteEvents:function(e){return"failed to delete ".concat(r.a.event({count:e,includeCount:!0}))},failedToSaveTabs:function(){return"failed to save ".concat(r.a.tab({count:o.a}))},failedToSaveCollection:function(){return"failed to save ".concat(r.a.collection())},failedToCloneCollection:function(){return"failed to clone ".concat(r.a.collection())},failedToCombineCollections:function(){return"failed to combine ".concat(r.a.collection({count:o.a}))},failedToUpdateCollection:function(){return"failed to update ".concat(r.a.collection())},inSet:function(e){var t=e.type,n=e.title,o=e.idx,i=e.totalCount;return"in ".concat(r.a[t]()," ").concat(n?'"'.concat(n,'" '):"","(").concat(o+1," of ").concat(i,")")}}},function(e,t,n){"use strict";var r=function(e){return crypto.getRandomValues(new Uint8Array(e))};n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",i=function(e){return function(e,t,n){var r=(2<0&&void 0!==arguments[0]?arguments[0]:t,a="";;)for(var c=n(o),u=o;u--;)if((a+=e[c[u]&r]||"").length===i)return a}}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,r)}(o,23);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Math.floor((o.indexOf(e[0])+1)/o.length*100)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return Math.max(o.indexOf(e[0]),0)%t}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return g}));var r=n(14),o=n(26),i=n(1),a=n(2),c=n(0),u=n(29),l=n(131),s=n(46),f=n(27),d=n(145);function p(){p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=d.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var h=function(){var e=Object(a.a)(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v([t]);case 2:return e.t0=t,e.abrupt("return",e.sent[e.t0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=Object(a.a)(p().mark((function e(t){var n,r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)();case 2:return n=e.sent,r=n.settings,e.next=6,r.get("experiments");case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:return o=e.t0,e.abrupt("return",m({keys:t,savedExperiments:o}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=Object(a.a)(p().mark((function e(t,n){var r,a,c;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)();case 2:return r=e.sent,a=r.settings,e.next=6,a.get("experiments");case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:return c=e.t0,e.next=12,a.set("experiments",Object(i.a)(Object(i.a)({},c),{},Object(o.a)({},t,n)));case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function m(e){var t=e.keys,n=e.savedExperiments,r={};return d.a.filter((function(e){var n=e.key;return!t||t.includes(n)})).forEach((function(e){var t=n[e.key];r[e.key]=null==t?e.defaultValue:"number"===typeof t?Object(s.a)(t,"min"in e&&"number"===typeof e.min?e.min:void 0,"max"in e&&"number"===typeof e.max?e.max:void 0):t})),r}var y={"collection-fetch-all":"collectionFetchAll","collection-fetch-count-initial":"collectionFetchCountInitial","collection-fetch-count-lazy":"collectionFetchCountLazy","copy-collections-max":"copyCollectionsMax","history-fetch-all":"historyFetchAll","history-fetch-count-initial":"historyFetchCountInitial","history-fetch-count-lazy":"historyFetchCountLazy","ingest-max-size":"ingestMaxSize","omit-sb-title-suffix":"omitSbTitleSuffix","optimized-open-delay":"optimizedOpenDelay","optimized-open-threshold":"optimizedOpenThreshold","remove-title-suffixes":"removeTitleSuffixes","use-theme-sensitive-favicons":"useThemeSensitiveFavicons","warn-on-open-tab-count":"warnOnOpenTabCount"},g=function(){Object(c.useEffect)((function(){try{navigator.locks.request("migrateExperiments",{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(p().mark((function e(t){var n,r,o,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,Object(u.b)();case 5:return n=e.sent,r=n.settings,e.next=9,r.get("enableAutoBackup");case 9:if(!1!==(o=e.sent)){e.next=21;break}return e.next=13,r.get("experiments");case 13:if(e.t0=e.sent,e.t0){e.next=16;break}e.t0={};case 16:return a=e.t0,e.next=19,r.set("experiments",Object(i.a)(Object(i.a)({},a),{},{enableAutoBackup:o}));case 19:return e.next=21,r.set("enableAutoBackup",!0);case 21:e.next=25;break;case 23:e.prev=23,e.t1=e.catch(2);case 25:return e.prev=25,e.next=28,Object(f.f)("debug");case 28:e.next=32;break;case 30:e.prev=30,e.t2=e.catch(25);case 32:return e.next=34,w();case 34:e.sent&&Object(l.b)();case 36:case"end":return e.stop()}}),e,null,[[2,23],[25,30]])})));return function(t){return e.apply(this,arguments)}}()).then((function(){var e=!1;window.addEventListener("storage",(function(t){var n;e||(null===(n=t.key)||void 0===n?void 0:n.startsWith("nxs.experiment."))&&null!=t.newValue&&(console.log("%cTo update an experiment, go to ".concat(window.location.origin,"/experiments.html"),"background:#af2c1a;color:white;padding:8px 12px;border-radius:8px;"),e=!0)}))}))}catch(e){console.error(e)}}),[])};function w(){return x.apply(this,arguments)}function x(){return(x=Object(a.a)(p().mark((function e(){var t,n,o,a,c,l,s,f,h,v,b,m,g,w,x;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(globalThis.localStorage){e.next=2;break}return e.abrupt("return");case 2:if(t=Object.keys(y).map((function(e){return[e,globalThis.localStorage.getItem("nxs.experiment.".concat(e))]})).filter((function(e){return null!=Object(r.a)(e,2)[1]})),t.length){e.next=5;break}return e.abrupt("return");case 5:return n=Object.fromEntries(t.map((function(e){var t=Object(r.a)(e,2),n=t[0],o=t[1];return[y[n],"true"===o||"false"!==o&&parseInt(null!==o&&void 0!==o?o:"",10)]})).filter((function(e){var t=Object(r.a)(e,2)[1];return!Number.isNaN(t)}))),e.next=8,Object(u.b)();case 8:return o=e.sent,a=o.settings,e.next=12,a.get("experiments");case 12:if(e.t0=e.sent,e.t0){e.next=15;break}e.t0={};case 15:return c=e.t0,e.next=18,a.set("experiments",Object(i.a)(Object(i.a)({},c),n));case 18:for(l=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:"";return e.substring(0,e.indexOf(":"))}function f(e){return Object(r.g)(Object(r.g)(e,"#"),"?")}function d(e){return"canParse"in URL?URL.canParse(e):p(e)||v(e)||!!(t=e)&&(t.startsWith("chrome://")||t.startsWith("brave://")||t.startsWith("edge://")||t.startsWith("opera://"))||b(e)||h(e)||function(e){return!!e&&e.startsWith("ftp://")}(e);var t}function p(e){return!!e&&(e.startsWith("https://")||e.startsWith("http://"))}function h(e){return!!e&&e.startsWith("data:")}function v(e){return!!e&&e.startsWith("file://")}function b(e){return!!e&&(e.startsWith("chrome-extension://")||e.startsWith("moz-extension://")||e.startsWith("extension://"))}function m(e){return!!e&&e.startsWith("javascript:")}function y(e){if(!e)return!1;var t="string"===typeof e?u(e):e,n=t.pathname,r=t.href;return!!(n&&r&&!h(r)&&i.some((function(e){return n.endsWith(e)}))||h(r)&&a.some((function(e){return r.startsWith("data:image/".concat(e,";base64,"))})))}function g(e){return x(e,["pdf"])}function w(e){return x(e,["md","markdown"])}function x(e,t){if(!e)return!1;var n=("string"===typeof e?u(e):e).pathname;return!!n&&t.some((function(e){return n.endsWith(".".concat(e))}))}function O(e){var t=e.url,n=e.key,r=e.value,o=new URL(t);return o.searchParams.set(n,r),o.toString()}function j(e){var t=e.url,n=e.key,r=new URL(t);return r.searchParams.delete(n),r.toString()}function k(e){window.history.pushState(null,"",e)}},,function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function u(e,t){return 2===c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===c(e)?e.get(t):e[t]}function s(e,t,n){var r=c(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return U&&e instanceof Map}function p(e){return W&&e instanceof Set}function h(e){return e.o||e.t}function v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Q(e);delete t[K];for(var n=Y(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&a(e,(function(e,t){return b(t,!0)}),!0)),e}function m(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function g(e){var t=X[e];return t||r(18,e),t}function w(e,t){X[e]||(X[e]=t)}function x(){return B}function O(e,t){t&&(g("Patches"),e.u=[],e.s=[],e.v=t)}function j(e){k(e),e.p.forEach(E),e.p=null}function k(e){e===B&&(B=e.l)}function S(e){return B={p:[],l:B,h:e,m:!0,_:0}}function E(e){var t=e[K];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||g("ES5").S(t,e,o),o?(n[K].P&&(j(t),r(4)),i(e)&&(e=T(t,e),t.l||P(t,e)),t.u&&g("Patches").M(n[K].t,e,t.u,t.s)):e=T(t,n,[]),j(t),t.u&&t.v(t.u,t.s),e!==G?e:void 0}function T(e,t,n){if(y(t))return t;var r=t[K];if(!r)return a(t,(function(o,i){return I(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return P(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=v(r.k):r.o,i=o,c=!1;3===r.i&&(i=new Set(o),o.clear(),c=!0),a(i,(function(t,i){return I(e,r,o,t,i,n,c)})),P(e,o,!1),n&&e.u&&g("Patches").N(r,n,e.u,e.s)}return r.o}function I(e,t,n,r,a,c,l){if(o(a)){var f=T(e,a,c&&t&&3!==t.i&&!u(t.R,r)?c.concat(r):void 0);if(s(n,r,f),!o(f))return;e.m=!1}else l&&n.add(a);if(i(a)&&!y(a)){if(!e.h.D&&e._<1)return;T(e,a),t&&t.A.l||P(e,a)}}function P(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&b(t,n)}function L(e,t){var n=e[K];return(n?h(n):e)[t]}function _(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function N(e){e.o||(e.o=v(e.t))}function M(e,t,n){var r=d(t)?g("MapSet").F(t,n):p(t)?g("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Z;n&&(o=[r],i=J);var a=Proxy.revocable(o,i),c=a.revoke,u=a.proxy;return r.k=u,r.j=c,u}(t,n):g("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function A(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[K],o=c(t);if(r){if(!r.P&&(r.i<4||!g("ES5").K(r)))return r.t;r.I=!0,n=D(t,o),r.I=!1}else n=D(t,o);return a(n,(function(t,o){r&&l(r.t,t)===o||s(n,t,e(o))})),3===o?new Set(n):n}(e)}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return v(e)}function F(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[K];return Z.get(t,e)},set:function(t){var n=this[K];Z.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][K];if(!o.P)switch(o.i){case 5:r(o)&&R(o);break;case 4:n(o)&&R(o)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==K){var a=t[i];if(void 0===a&&!u(t,i))return!0;var c=n[i],l=c&&c[K];if(l?l.t!==a:!f(c,a))return!0}}var s=!!t[K];return r.length!==Y(t).length+(s?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=g("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);t.b=ne},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(103);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(o.a)(e,n),Object(o.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(3),o=n(1),i=n(174),a=n(32),c=n(12);function u(e){if(!(null===e||void 0===e?void 0:e.trim()))return null;var t=Object(i.parse)(e.toLowerCase(),{keywords:["collection","folder","link","history","window","tab"],tokenize:!0,alwaysArray:!0,offsets:!1}),n=Object(c.q)((t.text||[]).filter(m)),r=Object(c.q)((t.collection||[]).filter(m)),o=Object(c.q)((t.folder||[]).filter(m)),a=Object(c.q)((t.link||[]).filter(m)),u=Object(c.q)((t.history||[]).filter(m)),l=Object(c.q)((t.window||[]).filter(m)),s=Object(c.q)((t.tab||[]).filter(m));return n.length||r.length||o.length||a.length||u.length||l.length||s.length?{free:n,collection:r,folder:o,link:a,history:u,window:l,tab:s}:null}function l(e,t){var n,r,o,i;return(null!==(n=t.score)&&void 0!==n?n:0)-(null!==(r=e.score)&&void 0!==r?r:0)||(null!==(o=t.secondaryScore)&&void 0!==o?o:0)-(null!==(i=e.secondaryScore)&&void 0!==i?i:0)}function s(e){return"tab"===e.type||"link"===e.type}function f(e){return e.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{tabs:(e.tabs||[]).filter((function(e){var t,n;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||(null===(n=e.urlSplit)||void 0===n?void 0:n.matchParts.length)}))})})).filter((function(e){var t;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||e.tabs.length}))}function d(e,t,n){return t?e.map((function(e){var i=Object(o.a)({},e);if(e.title){var c=Object(a.b)(e.title,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window)));c.matchParts.length&&(i.titleSplit=c)}return Object(o.a)(Object(o.a)({},i),{},{tabs:p(e.tabs||[],t,n)})})):e}function p(e,t,n){return e.map((function(e){var i=Object(o.a)({},e),c=Object(a.b)(e.url,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window),Object(r.a)(t.tab)),"url");c.matchParts.length&&(i.urlSplit=c);var u=Object(a.b)(e.title||e.url,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window),Object(r.a)(t.tab)));return u.matchParts.length&&(i.titleSplit=u),i}))}function h(e){return e.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{links:(e.links||[]).filter((function(e){var t,n;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||(null===(n=e.urlSplit)||void 0===n?void 0:n.matchParts.length)}))})})).filter((function(e){var t;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||e.links.length}))}function v(e,t){return t?e.map((function(e){var n=Object(o.a)({},e);if(e.title){var i=Object(a.b)(e.title,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder)));i.matchParts.length&&(n.titleSplit=i)}return Object(o.a)(Object(o.a)({},n),{},{links:b(e.links||[],t)})})):e}function b(e,t){return e.map((function(e){var n=Object(o.a)({},e),i=Object(a.b)(e.url,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder),Object(r.a)(t.link)),"url");i.matchParts.length&&(n.urlSplit=i);var c=Object(a.b)(e.title||e.url,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder),Object(r.a)(t.link)));return c.matchParts.length&&(n.titleSplit=c),n}))}function m(e){return e.length>1}},function(e,t,n){"use strict";function r(e){return"number"===typeof e&&Number.isFinite(e)}function o(e){return Number.isSafeInteger(e)}function i(e,t){return e-t}function a(e,t,n){var r=e;return null!=t&&(r=Math.max(r,t)),null!=n&&(r=Math.min(r,n)),r}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"d",(function(){return v})),n.d(t,"k",(function(){return b})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return y})),n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return w})),n.d(t,"i",(function(){return x})),n.d(t,"j",(function(){return O}));var r=n(2),o=n(22),i=n(107),a=n(12),c=n(70),u=n(5),l=n(6);function s(){s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var f=function(){return{selectedUnitIds:[],selectedGroupIds:[]}},d=function(e,t){var n=t.payload,r=n.groupIds,i=void 0===r?[]:r,a=n.unitIds,c=void 0===a?[]:a,s=n.additive,f=n.allGroups,d=n.favorUnits;if(e.items.selectedGroupIds=Object(l.x)(e.items.selectedGroupIds,i,s),e.items.selectedUnitIds=Object(l.x)(e.items.selectedUnitIds,c,s),(i.length&&c.length||s)&&f){var h,v=f.filter((function(t){var n=t.id;return e.items.selectedGroupIds.includes(n)})),b=Object(o.a)(v);try{for(b.s();!(h=b.n()).done;){var m=h.value,y=Object(u.u)(m).map((function(e){return e.id}));if(d)y.some((function(t){return e.items.selectedUnitIds.includes(t)}))&&p(e,{payload:{groupIds:[m.id]}});else p(e,{payload:{unitIds:y}})}}catch(g){b.e(g)}finally{b.f()}}},p=function(e,t){var n=t.payload,r=n.groupIds,o=void 0===r?[]:r,i=n.unitIds,c=void 0===i?[]:i;e.items.selectedGroupIds=Object(a.k)(e.items.selectedGroupIds,o),e.items.selectedUnitIds=Object(a.k)(e.items.selectedUnitIds,c)},h=function(e,t){var n=t.payload,r=n.id,o=n.allGroups;e.items.selectedUnitIds.includes(r)?p(e,{payload:{unitIds:[r]}}):d(e,{payload:{unitIds:[r],additive:!0,allGroups:o,favorUnits:!0}})},v=function(e,t){var n=t.payload,r=n.id,o=n.allGroups;e.items.selectedGroupIds.includes(r)?p(e,{payload:{groupIds:[r]}}):d(e,{payload:{groupIds:[r],additive:!0,allGroups:o}})},b=function(e,t){var n=t.payload,r=n.id,o=n.additive,i=n.allGroups,l=n.showAllItemMatches,s=Object(u.r)(i),f=(e.sets.searchTerms||e.sets.filterSearchTerms)&&!l?s.filter((function(e){return e.titleSplit||e.urlSplit})):s,p=Object(c.b)({selectedItem:r,anchorItem:Object(a.g)(e.items.selectedUnitIds),allItems:f.map((function(e){return e.id}))});d(e,{payload:{unitIds:p,additive:o,allGroups:i,favorUnits:!0}})},m=function(e,t){var n=t.payload,r=n.id,o=n.additive,i=n.allGroups,l=n.showAllItemMatches,s=(e.sets.searchTerms||e.sets.filterSearchTerms)&&!l?i.filter((function(e){return e.titleSplit||Object(u.u)(e).some((function(e){return e.titleSplit||e.urlSplit}))})):i,f=Object(c.b)({selectedItem:r,anchorItem:Object(a.g)(e.items.selectedGroupIds),allItems:s.map((function(e){return e.id}))});d(e,{payload:{groupIds:f,additive:o,allGroups:i}})},y=function(e){e.items.selectedUnitIds.length=0,e.items.selectedGroupIds.length=0},g=function(e){(function(e){return!e.selectedUnitIds.length&&!e.selectedGroupIds.length})(e.items)||(e.items=f())},w=["itemsSelected"];function x(e){return{selectPrevItem:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=O.beforeSelectedItem(i(),{contentGroups:n,fallBackToHead:!0})){r.next=3;break}return r.abrupt("return",o(t(n)));case 3:if(o(e.itemsSelected(a)),c=i().content.items,l=c.selectedUnitIds,f=c.selectedGroupIds,!l.length){r.next=9;break}if(!(d=Object(u.r)(n.folders||n.windows)[0])||!l.includes(d.id)){r.next=9;break}return r.abrupt("return","scroll-top");case 9:if(!f.length){r.next=13;break}if(!(p=(n.folders||n.windows)[0])||!f.includes(p.id)){r.next=13;break}return r.abrupt("return","scroll-top");case 13:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectNextItem:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=O.afterSelectedItem(i(),{contentGroups:n,fallBackToHead:!0})){r.next=3;break}return r.abrupt("return",o(t(n)));case 3:if(o(e.itemsSelected(a)),c=i().content.items,l=c.selectedUnitIds,f=c.selectedGroupIds,!l.length){r.next=15;break}if(d=Object(u.r)(n.folders||n.windows),!(p=d[0])||!l.includes(p.id)){r.next=10;break}return r.abrupt("return","scroll-top");case 10:if(!(h=d.at(-1))||!l.includes(h.id)){r.next=13;break}return r.abrupt("return","scroll-bottom");case 13:r.next=19;break;case 15:if(!f.length){r.next=19;break}if(!(v=(n.folders||n.windows)[0])||!f.includes(v.id)){r.next=19;break}return r.abrupt("return","scroll-top");case 19:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectGroupUnit:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v,b,m,y,g,w,x,O,j,k,S,E,C,T;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i(),c=a.content,null!=(l=c.items.selectedUnitIds.at(-1))?o(e.itemsSelected({unitIds:[l]})):null!=(f=c.items.selectedGroupIds.at(-1))?(d=(n.folders||n.windows).find((function(e){return e.id===f})))&&(p=Object(u.u)(d)[0])&&o(e.itemsSelected({unitIds:[p.id]})):o(t(n)),!(h=i().content.items.selectedUnitIds).length){r.next=11;break}if(!(C=(null===(v=n.folders)||void 0===v||null===(b=v[0])||void 0===b||null===(m=b.links)||void 0===m?void 0:m[0])||(null===(y=n.windows)||void 0===y||null===(g=y[0])||void 0===g||null===(w=g.tabs)||void 0===w?void 0:w[0]))||!h.includes(C.id)){r.next=8;break}return r.abrupt("return","scroll-top");case 8:if(!(T=(null===(x=n.folders)||void 0===x||null===(O=x.at(-1))||void 0===O||null===(j=O.links)||void 0===j?void 0:j.at(-1))||(null===(k=n.windows)||void 0===k||null===(S=k.at(-1))||void 0===S||null===(E=S.tabs)||void 0===E?void 0:E.at(-1)))||!h.includes(T.id)){r.next=11;break}return r.abrupt("return","scroll-bottom");case 11:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectUnitGroup:function(t){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i(),c=a.content,null!=(l=c.items.selectedUnitIds.at(-1))?(f=Object(u.p)(t.folders||t.windows,(function(e){return e.id===l})),(d=null===f||void 0===f?void 0:f.group)&&o(e.itemsSelected({groupIds:[d.id]}))):(p=c.items.selectedGroupIds.at(-1),o(null!=p?e.itemsSelected({groupIds:[p]}):n(t))),!(h=i().content.items.selectedGroupIds).length){r.next=8;break}if(!(v=(t.folders||t.windows)[0])||!h.includes(v.id)){r.next=8;break}return r.abrupt("return","scroll-top");case 8:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectFirstItem:function(e){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,u,l,f;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i().content.items,c=a.selectedUnitIds,u=a.selectedGroupIds,!c.length&&u.length){r.next=6;break}return o(t(e)),l=i().content.items.selectedUnitIds,1===c.length&&1===l.length&&c[0]===l[0]&&o(n(e)),r.abrupt("return");case 6:o(n(e)),f=i().content.items.selectedGroupIds,1===u.length&&1===f.length&&u[0]===f[0]&&o(t(e));case 9:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectFirstUnit:t,selectFirstGroup:n,selectLastItem:function(e){return function(){var t=Object(r.a)(s().mark((function t(n,r){var a,c,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r().content.items,c=a.selectedUnitIds,u=a.selectedGroupIds,!c.length&&u.length){t.next=3;break}return t.abrupt("return",n(o(e)));case 3:n(i(e));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},selectLastUnit:o,selectLastGroup:i};function t(t){return function(n){var r,o,i,a,c,u,l=(null===(r=t.folders)||void 0===r||null===(o=r[0])||void 0===o||null===(i=o.links)||void 0===i?void 0:i[0])||(null===(a=t.windows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.tabs)||void 0===u?void 0:u[0]);l&&n(e.itemsSelected({unitIds:[l.id]}))}}function n(t){return function(n){var r=(t.folders||t.windows)[0];r&&n(e.itemsSelected({groupIds:[r.id]}))}}function o(t){return function(n){var r,o,i,a,c,u,l=(null===(r=t.folders)||void 0===r||null===(o=r.at(-1))||void 0===o||null===(i=o.links)||void 0===i?void 0:i.at(-1))||(null===(a=t.windows)||void 0===a||null===(c=a.at(-1))||void 0===c||null===(u=c.tabs)||void 0===u?void 0:u.at(-1));l&&n(e.itemsSelected({unitIds:[l.id]}))}}function i(t){return function(n){var r=(t.folders||t.windows).at(-1);r&&n(e.itemsSelected({groupIds:[r.id]}))}}}var O={itemSelections:Object(i.a)((function(e){return e.content.items}),(function(e){return{unitIds:e.selectedUnitIds,groupIds:e.selectedGroupIds}})),hasItemSelection:function(e){var t=e.content;return t.items.selectedUnitIds.length>0||t.items.selectedGroupIds.length>0},beforeSelectedItem:function(e,t){var n=e.content,r=t.contentGroups,o=t.skip,i=t.fallBackToHead,a="selected"===o?{unitIds:n.items.selectedUnitIds,groupIds:n.items.selectedGroupIds}:o;if(n.items.selectedUnitIds.length){var c=n.items.selectedUnitIds.at(-1);if(null==c)return;var l=Object(u.q)(r.folders||r.windows),s=a?l.filter((function(e){var t,n,r=e.unit,o=e.group;return r.id===c||!(null===(t=a.unitIds)||void 0===t?void 0:t.includes(r.id))&&!(null===(n=a.groupIds)||void 0===n?void 0:n.includes(o.id))})):l,f=s.findIndex((function(e){return e.unit.id===c}));if(f<0)return;var d=s[f-1];if(d)return{unitIds:[d.unit.id]};if(i)return{unitIds:[c]}}else if(n.items.selectedGroupIds.length){var p=n.items.selectedGroupIds.at(-1);if(null==p)return;var h=r.folders||r.windows,v=a?h.filter((function(e){var t,n=e.id;return n===p||!(null===(t=a.groupIds)||void 0===t?void 0:t.includes(n))})):h,b=v.findIndex((function(e){return e.id===p}));if(b<0)return;var m=v[b-1];if(m)return{groupIds:[m.id]};if(i)return{groupIds:[p]}}},afterSelectedItem:function(e,t){var n=e.content,r=t.contentGroups,o=t.skip,i=t.fallBackToHead,a="selected"===o?{unitIds:n.items.selectedUnitIds,groupIds:n.items.selectedGroupIds}:o;if(n.items.selectedUnitIds.length){var c=n.items.selectedUnitIds.at(-1);if(null==c)return;var l=Object(u.q)(r.folders||r.windows),s=a?l.filter((function(e){var t,n,r=e.unit,o=e.group;return r.id===c||!(null===(t=a.unitIds)||void 0===t?void 0:t.includes(r.id))&&!(null===(n=a.groupIds)||void 0===n?void 0:n.includes(o.id))})):l,f=s.findIndex((function(e){return e.unit.id===c}));if(f<0)return;var d=s[f+1];if(d)return{unitIds:[d.unit.id]};if(i)return{unitIds:[c]}}else if(n.items.selectedGroupIds.length){var p=n.items.selectedGroupIds.at(-1);if(null==p)return;var h=r.folders||r.windows,v=a?h.filter((function(e){var t,n=e.id;return n===p||!(null===(t=a.groupIds)||void 0===t?void 0:t.includes(n))})):h,b=v.findIndex((function(e){return e.id===p}));if(b<0)return;var m=v[b+1];if(m)return{groupIds:[m.id]};if(i)return{groupIds:[p]}}}}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(215)},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"l",(function(){return C})),n.d(t,"c",(function(){return T})),n.d(t,"j",(function(){return I})),n.d(t,"i",(function(){return P})),n.d(t,"k",(function(){return L})),n.d(t,"h",(function(){return _})),n.d(t,"o",(function(){return R})),n.d(t,"n",(function(){return N})),n.d(t,"p",(function(){return M})),n.d(t,"f",(function(){return A})),n.d(t,"g",(function(){return D})),n.d(t,"e",(function(){return F})),n.d(t,"d",(function(){return z})),n.d(t,"q",(function(){return B})),n.d(t,"b",(function(){return H})),n.d(t,"m",(function(){return W})),n.d(t,"r",(function(){return q}));var r=n(2),o=n(3),i=n(1),a=n(5),c=n(51),u=n(56),l=n(63),s=n(99),f=n(8),d=n(12),p=n(24),h=n(79),v=n(81),b=n(18),m=n(9),y=n(10),g=n(39),w=n(47),x=n(6),O=n(36);function j(){j=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var k,S=250,E=0,C=function(){return E},T=function(e,t){var n=t.payload;e.sets.selectedClientHistoryItemId=n,Object(w.e)(e)},I=function(e){e.sets.clientHistory.navSetsLoading=!0},P=function(e){e.sets.clientHistory.navSetsLoading&&(e.sets.clientHistory.navSetsLoadingLong=!0)},L=function(e,t){var n=t.payload,r=n.fetchedEvents,o=n.exhausted;r.forEach((function(t){t.id&&(e.sets.clientHistory.sets[t.id]=Object(i.a)(Object(i.a)(Object(i.a)({},e.sets.clientHistory.sets[t.id]),t),{},{loaded:Object(f.m)()}),e.sets.clientHistory.navSetIds.includes(t.id)||e.sets.clientHistory.navSetIds.push(t.id))})),e.sets.clientHistory.initialized=!0,e.sets.clientHistory.exhausted=o,G(e.sets.clientHistory)},_=function(e,t){var n=t.payload;Object(b.d)("Failed to fetch history: ".concat(n)),G(e.sets.clientHistory)},R=function(e){e.sets.clientHistory.navSetIds=[],e.sets.clientHistory.exhausted=!0},N=function(e){G(e.sets.clientHistory)},M=function(e,t){var n=t.payload,r=(void 0===n?{}:n).type;e.sets.clientHistory.sets=Object(p.c)(e.sets.clientHistory.sets,(function(e){return!!r&&e.type!==r}))},A=function(e,t){var n=t.payload;Object(x.v)(e.sets,n)},D=function(e,t){var n=t.payload,r=n.fetchedItem,o=n.queryId;if(r.id){var a=e.sets.clientHistory.sets;a[r.id]=Object(i.a)(Object(i.a)(Object(i.a)({},a[r.id]),r),{},{loaded:Object(f.m)()})}Object(x.w)(e.sets,r.id||o)},F=function(e,t){var n=t.payload,r=n.error,o=n.queryId;Object(b.d)("Full history item fetch failed (".concat(o,"): ").concat(r)),Object(x.w)(e.sets,o)},z=function(e,t){var n=t.payload,r=e.sets.clientHistory;r.navSetIds=Object(d.k)(r.navSetIds,n),n.forEach((function(e){delete r.sets[e]}))},B=function(e,t){var n=t.payload;if(n.every(v.a)){var r=e.sets.clientHistory;n.forEach((function(e){r.sets[e.id]=Object(a.z)(e)}));var i=n.map((function(e){return e.id}));r.navSetIds=[].concat(Object(o.a)(i),Object(o.a)(Object(d.k)(r.navSetIds,i))),r.navSetIds=Object(o.a)(r.navSetIds).sort().reverse()}else Object(b.d)("Some saving events are missing an id",n)},H=["clientHistoryItemSelected","fetchNavClientHistoryStarted","fetchNavClientHistoryLongStarted","fetchNavClientHistorySucceeded","fetchNavClientHistoryFailed","navClientHistoryNavSetIdsCleared","navClientHistoryLoadingStopped","navClientHistoryRemoveFromSets","itemSelectionCleared","itemsDeselected","saveEventsStarted","fetchFullClientHistoryItemStarted","fetchFullClientHistoryItemSucceeded","fetchFullClientHistoryItemFailed","deleteEventsStarted"],U=0;function W(e){var t=Object(h.a)();return{fetchNavClientHistory:n,selectClientHistoryItem:o,clearClientHistory:function(){return function(){var t=Object(r.a)(j().mark((function t(r,i){var a;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.c)();case 2:r(e.navClientHistoryRemoveFromSets()),a=i(),a.content.sets.selectedClientHistoryItemId!==E&&(r(e.itemSelectionCleared()),r(o(E))),r(n({reset:!0}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},removeSnapshotItems:function(){return function(){var t=Object(r.a)(j().mark((function t(r,i){var a,u;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.l)("snapshot-scheduled");case 2:r(e.navClientHistoryRemoveFromSets({type:"snapshot-scheduled"})),a=i(),(u=a.content).sets.selectedClientHistoryItemId!==E&&(Object(x.f)(u.sets,u.sets.selectedClientHistoryItemId)||(r(e.itemSelectionCleared()),r(o(E)))),r(n({reset:!0}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},deleteEvents:d,deleteSelectedEvents:function(e){return function(){var t=Object(r.a)(j().mark((function t(n,r){var o,i,a,c;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),(i=o.content).sets.selectedClientHistoryItemId){t.next=3;break}return t.abrupt("return");case 3:return a="Delete ".concat(y.a.event({count:1}),"?"),c="".concat(y.a.event({count:1,includeCount:!0})," will be permanently deleted"),t.abrupt("return",n(Object(l.d)({title:a,text:c,bypass:e,bypassSetting:"bypassConfirmEventDelete",okAction:function(){n(d([i.sets.selectedClientHistoryItemId]))}})));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},deleteItemsFromEvent:p,deleteItemsFromSelectedEvent:function(e){return function(){var t=Object(r.a)(j().mark((function t(n,r){var o,i,a;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),i=o.content,a=Object(x.f)(i.sets,i.sets.selectedClientHistoryItemId)){t.next=4;break}return t.abrupt("return");case 4:return t.abrupt("return",n(p({itemSelections:e,event:a})));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},updateEvent:w,selectPrevNavEvent:function(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r=q.beforeSelectedNavEventId(n(),{fallBackToHead:!0}))){e.next=5;break}return e.next=4,t(o(E));case 4:return e.abrupt("return","scroll-top");case 5:return e.next=7,t(o(r));case 7:return i=n().content.sets.selectedClientHistoryItemId,e.abrupt("return",i===E?"scroll-top":void 0);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectNextNavEvent:function(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i,a,c;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r=q.afterSelectedNavEventId(n(),{fallBackToHead:!0}))){e.next=5;break}return e.next=4,t(o(E));case 4:return e.abrupt("return","scroll-top");case 5:return e.next=7,t(o(r));case 7:return i=n().content.sets,a=i.clientHistory,c=i.selectedClientHistoryItemId,e.abrupt("return",c===E?"scroll-top":a.navSetIds.length&&a.navSetIds.at(-1)===c?"scroll-bottom":void 0);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectFirstNavEvent:function(){return function(e){return e(o(E))}},selectLastNavEvent:function(){return function(e,t){var n;return e(o(null!==(n=t().content.sets.clientHistory.navSetIds.at(-1))&&void 0!==n?n:E))}},selectPostDeleteNavEvent:C};function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.immediateLoader,o=void 0!==n&&n,i=t.reset;return function(){var t=Object(r.a)(j().mark((function t(n,r){var a,u,l,f,d,p,h,v,b,y,w,O;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(g.b)(["debug","historyFetchAll","historyFetchCountInitial","historyFetchCountLazy"]);case 2:return a=t.sent,u=a.debug,l=a.historyFetchAll,f=a.historyFetchCountInitial,d=a.historyFetchCountLazy,p=l?999999999:i?f:d,h=++U,v=r(),b=v.content,y=b.sets.searchTerms,n(e.navClientHistoryLoadingStopped()),n(e.fetchNavClientHistoryStarted()),o?n(e.fetchNavClientHistoryLongStarted()):k=window.setTimeout((function(){n(e.fetchNavClientHistoryLongStarted())}),S),t.prev=14,i&&n(e.navClientHistoryNavSetIdsCleared()),w=i?void 0:Object(x.k)(b.sets),t.next=19,Object(c.e)({partial:!0,lastItemId:null===w||void 0===w?void 0:w.id,limit:p,searchTerms:y});case 19:if(O=t.sent,U===h){t.next=23;break}return u&&Object(m.f)("history fetch dropped"),t.abrupt("return");case 23:n(e.fetchNavClientHistorySucceeded({fetchedEvents:O,exhausted:O.length!==p})),t.next=31;break;case 26:t.prev=26,t.t0=t.catch(14),n(e.fetchNavClientHistoryFailed((null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0)),"NotReadableError"===((null===t.t0||void 0===t.t0?void 0:t.t0.name)||t.t0)&&n(Object(s.a)("history-NotReadableError"));case 31:case"end":return t.stop()}}),t,null,[[14,26]])})));return function(e,n){return t.apply(this,arguments)}}()}function o(t){return function(){var n=Object(r.a)(j().mark((function n(r,o){var i,a,u;return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r(e.clientHistoryItemSelected(t)),i=o(),a=i.content,!Object(x.f)(a.sets,t)||Object(x.t)(a.sets,t)){n.next=15;break}return r(e.fetchFullClientHistoryItemStarted(t)),n.prev=5,n.next=8,Object(c.f)(t);case 8:u=n.sent,r(e.fetchFullClientHistoryItemSucceeded({fetchedItem:u,queryId:t})),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),r(e.fetchFullClientHistoryItemFailed({error:(null===n.t0||void 0===n.t0?void 0:n.t0.message)||n.t0,queryId:t}));case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(e,t){return n.apply(this,arguments)}}()}function d(n){return function(){var o=Object(r.a)(j().mark((function r(o){return j().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.length){r.next=2;break}return r.abrupt("return");case 2:return o(C()),o(e.deleteEventsStarted(n)),o(Object(u.b)()),r.abrupt("return",t((function(){return Object(c.d)(n)})).catch((function(){o(Object(u.e)({text:O.a.failedToDeleteEvents(n.length),severity:"error",actionText:O.a.tryAgain(),action:function(){o(d(n))}}))})));case 6:case"end":return r.stop()}}),r)})));return function(e){return o.apply(this,arguments)}}()}function p(t){var n=t.itemSelections,o=t.eventId,a=t.event;return function(){var t=Object(r.a)(j().mark((function t(r,c){var u,l,s,f;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a||(a=Object(x.f)(c().content.sets,o)),a&&a.windows){t.next=3;break}return t.abrupt("return");case 3:return u=a.windows.filter((function(e){return!e.tabs.length})).map((function(e){return e.id})),l=a.windows.filter((function(e){var t=e.id;return!n.groupIds.includes(t)})).map((function(e){return Object(i.a)(Object(i.a)({},e),{},{tabs:e.tabs.filter((function(e){var t=e.id;return!n.unitIds.includes(t)}))})})),s=l.filter((function(e){return e.tabs.length||u.includes(e.id)})),f=Object(i.a)(Object(i.a)({},a),{},{windows:s}),r(e.itemsDeselected(n)),t.abrupt("return",r(w({event:f})));case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function w(e){var t=e.event,n=e.timestamp,o=void 0===n?Object(f.m)():n,a=e.id,c=e.props;return function(){var e=Object(r.a)(j().mark((function e(n,r){var u,l;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=7;break}if(a&&c){e.next=3;break}return e.abrupt("return");case 3:if(u=Object(x.f)(r().content.sets,a)){e.next=6;break}throw new Error("attempt to patch a non-existent or invalid event (id ".concat(a,")"));case 6:t=Object(i.a)(Object(i.a)({},u),c);case 7:if(Object(v.a)(t)&&!Object(x.u)(t)){e.next=9;break}return e.abrupt("return");case 9:return l=Object(i.a)(Object(i.a)({},t),{},{updated:o}),e.abrupt("return",n(T({savingEvents:[l]})));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function C(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i,a,c,u;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),i=q.afterSelectedNavEventId(r)||q.beforeSelectedNavEventId(r)||E,e.next=4,t(o(i));case 4:return a=n().content.sets,c=a.clientHistory,u=a.selectedClientHistoryItemId,e.abrupt("return",u===E?"scroll-top":c.navSetIds.length&&c.navSetIds.at(-1)===u?"scroll-bottom":void 0);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function T(t){var n=t.savingEvents;return function(){var t=Object(r.a)(j().mark((function t(r){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.every(v.a)){t.next=3;break}return Object(b.d)("Some saving events are missing an id",n),t.abrupt("return");case 3:return r(e.saveEventsStarted(n)),r(Object(u.b)()),t.abrupt("return",Object(c.m)(n.map((function(e){return Object(a.z)(e,!0)}))));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}var q={selectedClientHistoryItemId:function(e){return e.content.sets.selectedClientHistoryItemId},selectedClientHistoryItem:function(e){var t=e.content;return t.sets.clientHistory.sets[t.sets.selectedClientHistoryItemId]},clientHistoryInitialized:function(e){return e.content.sets.clientHistory.initialized},navClientHistoryIsLoading:function(e){return e.content.sets.clientHistory.navSetsLoading},navClientHistoryIsLoadingLong:function(e){return e.content.sets.clientHistory.navSetsLoadingLong},navClientHistoryIsExhausted:function(e){return!!e.content.sets.clientHistory.exhausted},navClientHistory:function(e){var t=e.content;return t.sets.clientHistory.navSetIds.map((function(e){return t.sets.clientHistory.sets[e]})).filter(Boolean)},noNavClientHistoryExists:function(e){var t=e.content;return!q.navClientHistory({content:t}).length},beforeSelectedNavEventId:function(e){var t,n=e.content,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallBackToHead,i=[E].concat(Object(o.a)(n.sets.clientHistory.navSetIds)),a=n.sets.selectedClientHistoryItemId,c=i.indexOf(a);if(!(c<0))return null!==(t=i[c-1])&&void 0!==t?t:r?a:void 0},afterSelectedNavEventId:function(e){var t,n=e.content,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallBackToHead,i=[E].concat(Object(o.a)(n.sets.clientHistory.navSetIds)),a=n.sets.selectedClientHistoryItemId,c=i.indexOf(a);if(!(c<0))return null!==(t=i[c+1])&&void 0!==t?t:r?a:void 0}};function G(e){e.navSetsLoading=!1,e.navSetsLoadingLong=!1,window.clearTimeout(k)}},function(e,t,n){"use strict";n.d(t,"h",(function(){return O})),n.d(t,"c",(function(){return k})),n.d(t,"f",(function(){return E})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return I})),n.d(t,"i",(function(){return L})),n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return N})),n.d(t,"g",(function(){return M}));var r=n(22),o=n(3),i=n(2),a=n(58),c=n(59),u=n(64),l=n(65),s=n(105),f=n(71),d=n(45),p=n(32),h=n(79),v=n(24),b=n(8),m=n(9);function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=d.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var g=new(function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.call(this,"nxsCollections",{chromeTransactionDurability:"strict"})).collections=void 0,e.version(1).stores({collections:"id, [pinned+touched]"}),e.collections=e.table("collections"),e}return Object(a.a)(n)}(s.a)),w=g.collections,x=Object(h.a)();function O(){return j.apply(this,arguments)}function j(){return(j=Object(i.a)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.count();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),Object(m.c)(e.t0,{prefix:"Failed to get collection count"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function k(e){var t=e.from,n=e.limit,a=void 0===n?50:n,c=e.searchTerms,u=e.asc,l=e.partial;return x(Object(i.a)(y().mark((function e(){var n,i,s,f,d,h,v,b,m,g,x;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(e){if(!e)return!1;if(t&&e.id===t.collectionId)return!1;if(!c)return!0;if(!c.free.length&&!c.collection.length&&!c.folder.length&&!c.link.length)return!1;if(Object(p.a)(e.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection))))return!0;var n,i=Object(r.a)(e.folders||[]);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(Object(p.a)(a.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder))))return!0;var u,l=Object(r.a)(a.links||[]);try{for(l.s();!(u=l.n()).done;){var s=u.value;if(Object(p.a)(s.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder),Object(o.a)(c.link)))||Object(p.a)(s.url,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder),Object(o.a)(c.link)),"url"))return!0}}catch(f){l.e(f)}finally{l.f()}}}catch(f){i.e(f)}finally{i.f()}return!1},null===t||void 0===t?void 0:t.pinnedTouchedTuple){e.next=8;break}return i=w.orderBy("[pinned+touched]"),s=u?i:i.reverse(),e.next=6,s.filter(n).limit(a).toArray();case 6:return e.t0=e.sent,e.abrupt("return",{main:e.t0});case 8:return f=w.where("[pinned+touched]"),d=u?f.above(t.pinnedTouchedTuple):f.below(t.pinnedTouchedTuple).reverse(),e.next=12,d.filter(n).limit(a).toArray();case 12:return h=e.sent,v=l?h.map(S):h,b=f.equals(t.pinnedTouchedTuple),m=u?b:b.reverse(),e.next=18,m.filter(n).toArray();case 18:return g=e.sent,x=l?g.map(S):g,e.abrupt("return",{main:v,boundary:x});case 21:case"end":return e.stop()}}),e)}))))}function S(e){return e.pinned?e:Object(v.i)(e,["id","title","color","created","updated","pinned","touched"])}function E(e){return C(e)}function C(e){return T.apply(this,arguments)}function T(){return T=Object(i.a)(y().mark((function e(t){var n,r,o=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,w.bulkGet(t);case 3:return r=e.sent.filter(Boolean),"date-desc"===n.order?r.sort(f.c):"date-asc"===n.order&&r.sort(f.c).reverse(),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function I(){return P.apply(this,arguments)}function P(){return(P=Object(i.a)(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=void 0,e.next=3,w.each((function(e){e.created&&(!t||e.created1&&void 0!==arguments[1]?arguments[1]:{};return x(Object(i.a)(y().mark((function n(){var i;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={collection:[],folder:[],link:[]},e.free.length||e.collection.length||e.folder.length||e.link.length){n.next=3;break}return n.abrupt("return",i);case 3:return n.next=5,w.orderBy("[pinned+touched]").reverse().each((function(n){if(n){var a,c=Object(p.a)(n.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection))),u=0,l=0,s=Object(r.a)(n.folders||[]);try{for(s.s();!(a=s.n()).done;){var f=a.value,d=Object(p.a)(f.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder))),h=0,v=0;d&&(u+=d);var b,m=Object(r.a)(f.links||[]);try{for(m.s();!(b=m.n()).done;){var y=b.value,g=Math.pow(Object(p.a)(y.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder),Object(o.a)(e.link)))+Object(p.a)(y.url,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder),Object(o.a)(e.link)),"url"),2);g&&(l++,v++,t.excludeLinks||i.link.push({id:y.id,setId:n.id,text:y.title||y.url,score:g,type:"link",setTitle:n.title,unit:y}),u+=g,h+=g)}}catch(w){m.e(w)}finally{m.f()}!d&&!h||t.excludeFolders||i.folder.push({id:f.id,setId:n.id,text:f.title,score:d,secondaryScore:h,unitMatchCount:v,type:"folder",setTitle:n.title})}}catch(w){s.e(w)}finally{s.f()}!c&&!u||t.excludeCollections||i.collection.push({id:n.id,setId:n.id,text:n.title,score:c,secondaryScore:u,unitMatchCount:l,type:"collection",setCreated:n.created,setUpdated:n.updated,setPinned:n.pinned,setTouched:n.touched})}}));case 5:return n.abrupt("return",{collection:i.collection.sort(d.g),folder:i.folder.sort(d.g),link:i.link.sort(d.g)});case 6:case"end":return n.stop()}}),n)}))))}function A(){try{var e,t,n;null===(e=globalThis.chrome)||void 0===e||null===(t=e.storage)||void 0===t||null===(n=t.local)||void 0===n||n.set({localDbCollectionsChanged:Object(b.n)()})}catch(r){}}},function(e,t,n){"use strict";n.d(t,"j",(function(){return S})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"g",(function(){return I})),n.d(t,"h",(function(){return L})),n.d(t,"c",(function(){return R})),n.d(t,"l",(function(){return N})),n.d(t,"d",(function(){return M})),n.d(t,"m",(function(){return A})),n.d(t,"b",(function(){return F})),n.d(t,"a",(function(){return B})),n.d(t,"k",(function(){return U})),n.d(t,"i",(function(){return q}));var r=n(3),o=n(22),i=n(2),a=n(58),c=n(59),u=n(64),l=n(65),s=n(105),f=n(102),d=n(45),p=n(32),h=n(79),v=n(8),b=n(24),m=n(13),y=n(18),g=n(9),w=n(10);function x(){x=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var O=new(function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.call(this,"nxsClientHistory",{chromeTransactionDurability:"strict"})).clientHistory=void 0,e.version(1).stores({clientHistory:"id, type"}),e.clientHistory=e.table("clientHistory"),e}return Object(a.a)(n)}(s.a)),j=O.clientHistory,k=Object(h.a)();function S(){return E.apply(this,arguments)}function E(){return(E=Object(i.a)(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.count();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),Object(g.c)(e.t0,{prefix:"Failed to get event count"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function C(e){var t=e.lastItemId,n=e.limit,a=void 0===n?50:n,c=e.searchTerms,u=e.partial;return k(Object(i.a)(x().mark((function e(){var n,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t?j.where("id").below(t):j.orderBy("id"),e.next=3,n.reverse().filter((function(e){if(!e)return!1;if(!c)return!0;if(!c.free.length&&!c.history.length&&!c.window.length&&!c.tab.length)return!1;var t,n=Object(o.a)(e.windows||[]);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(Object(p.a)(i.title,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window))))return!0;var a,u=Object(o.a)(i.tabs||[]);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Object(p.a)(l.title,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window),Object(r.a)(c.tab)))||Object(p.a)(l.url,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window),Object(r.a)(c.tab)),"url"))return!0}}catch(s){u.e(s)}finally{u.f()}}}catch(s){n.e(s)}finally{n.f()}return!1})).limit(a).toArray();case 3:return i=e.sent,e.abrupt("return",u?i.map((function(e){return Object(b.i)(e,["id","type","updated"])})):i);case 5:case"end":return e.stop()}}),e)}))))}function T(e){return j.get(e)}function I(e){return P.apply(this,arguments)}function P(){return(P=Object(i.a)(x().mark((function e(t){var n,r,o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=j.orderBy("id").reverse(),r=t?n.filter((function(e){return e&&e.type===t})):n,e.next=4,r.limit(1).toArray();case 4:return o=e.sent,e.abrupt("return",o.length?o[0]:void 0);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(){return _.apply(this,arguments)}function _(){return(_=Object(i.a)(x().mark((function e(){var t,n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=j.orderBy("id"),e.next=3,t.limit(1).toArray();case 3:return n=e.sent,e.abrupt("return",n.length?n[0]:void 0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(){return G(),j.clear()}function N(e){return G(),j.where("type").equals(e).delete()}function M(e){return G(),j.bulkDelete(e)}function A(e,t){return D.apply(this,arguments)}function D(){return(D=Object(i.a)(x().mark((function e(t,n){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(),e.next=3,O.transaction("rw",j,Object(i.a)(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j.bulkPut(t.filter(Boolean));case 2:case"end":return e.stop()}}),e)}))));case 3:if(!n){e.next=6;break}return e.next=6,U(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,t){return z.apply(this,arguments)}function z(){return(z=Object(i.a)(x().mark((function e(t,n){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(G(),e.prev=1,t){e.next=4;break}throw new Error("attempt to add null/undefined history item");case 4:return e.next=6,j.add(t);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),Object(y.e)(e.t0,{prefix:"Failed to add to history".concat(t?" (id: ".concat(t.id,", instant: ").concat(t.instant,", type: ").concat(t.type,", created: ").concat(t.created,", updated: ").concat(t.updated,")"):"")});case 11:if(!n){e.next=14;break}return e.next=14,U(n);case 14:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function B(e,t){return H.apply(this,arguments)}function H(){return(H=Object(i.a)(x().mark((function e(t,n){var r,i,a,c;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:G(),r=0,i=Object(o.a)(t),e.prev=3,i.s();case 5:if((a=i.n()).done){e.next=19;break}if(c=a.value,e.prev=7,c){e.next=10;break}throw new Error("attempt to add null/undefined history item");case 10:return e.next=12,j.add(c);case 12:r++,e.next=17;break;case 15:e.prev=15,e.t0=e.catch(7);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),i.e(e.t1);case 24:return e.prev=24,i.f(),e.finish(24);case 27:if(!n){e.next=30;break}return e.next=30,U(n);case 30:return e.abrupt("return",r);case 31:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,15]])})))).apply(this,arguments)}function U(e){return W.apply(this,arguments)}function W(){return(W=Object(i.a)(x().mark((function e(t){var n,r,o,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.maxAge,r=t.maxCount,e.prev=1,!n){e.next=8;break}return o=Object(v.m)()-n,e.next=6,j.where("id").below(o).delete();case 6:e.sent&&G();case 8:if(!r){e.next=17;break}return e.next=11,j.count();case 11:if(!((i=e.sent)>r)){e.next=17;break}return e.next=15,j.orderBy("id").limit(i-r).delete();case 15:e.sent&&G();case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),console.warn("history housekeeping failed",e.t0);case 22:case"end":return e.stop()}}),e,null,[[1,19]])})))).apply(this,arguments)}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k(Object(i.a)(x().mark((function n(){var i;return x().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={event:[],window:[],tab:[]},e.free.length||e.history.length||e.window.length||e.tab.length){n.next=3;break}return n.abrupt("return",i);case 3:return n.next=5,j.orderBy("id").reverse().each((function(n){if(n){var a,c=0,u=0,l=Object(o.a)(n.windows||[]);try{for(l.s();!(a=l.n()).done;){var s=a.value,d=Object(p.a)(s.title,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window))),h=0,v=0;d&&(c+=d);var b,y=Object(o.a)(s.tabs||[]);try{for(y.s();!(b=y.n()).done;){var g=b.value,x=Math.pow(Object(p.a)(g.title,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window),Object(r.a)(e.tab)))+Object(p.a)(g.url,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window),Object(r.a)(e.tab)),"url"),2);x&&(u++,v++,t.excludeTabs||i.tab.push({id:g.id,setId:n.id,text:g.title||g.url,score:x,type:"tab",setTitle:"".concat(f.a.clientHistoryItemType(n.type)," ").concat(w.a.event()," from ").concat(w.a.shortDate(n.id,{abbreviateRecent:!0})),unit:g}),c+=x,h+=x)}}catch(O){y.e(O)}finally{y.f()}!d&&!h||t.excludeWindows||i.window.push({id:s.id,setId:n.id,text:s.title,score:d,secondaryScore:h,unitMatchCount:v,type:"window",setTitle:"".concat(f.a.clientHistoryItemType(n.type)," ").concat(w.a.event()," from ").concat(w.a.shortDate(n.id,{abbreviateRecent:!0}))})}}catch(O){l.e(O)}finally{l.f()}c&&!t.excludeEvents&&i.event.push({id:n.id,setId:n.id,text:Object(m.d)(w.a.shortDate(n.id,{abbreviateRecent:!0})),score:0,secondaryScore:c,unitMatchCount:u,type:"event",eventType:n.type})}}));case 5:return n.abrupt("return",{event:i.event.sort(d.g),window:i.window.sort(d.g),tab:i.tab.sort(d.g)});case 6:case"end":return n.stop()}}),n)}))))}function G(){try{var e,t,n;null===(e=globalThis.chrome)||void 0===e||null===(t=e.storage)||void 0===t||null===(n=t.local)||void 0===n||n.set({localDbEventsChanged:Object(v.n)()})}catch(r){}}},function(e,t,n){"use strict";n.d(t,"g",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"q",(function(){return I})),n.d(t,"p",(function(){return P})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return R})),n.d(t,"j",(function(){return N})),n.d(t,"k",(function(){return M})),n.d(t,"o",(function(){return A})),n.d(t,"l",(function(){return D})),n.d(t,"m",(function(){return F})),n.d(t,"n",(function(){return z})),n.d(t,"b",(function(){return B})),n.d(t,"a",(function(){return H})),n.d(t,"h",(function(){return U})),n.d(t,"i",(function(){return W}));var r=n(2),o=n(22),i=n(1),a=n(3),c=n(107),u=n(12),l=n(24),s=n(8),f=n(13),d=n(70),p=n(18),h=n(9),v=n(5),b=n(50),m=n(10),y=n(102),g=n(17),w=n(45),x=n(47),O=n(49),j=n(36),k=n(6),S=n(125);function E(){E=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var C=function(){return[v.j]},T=function(){return{initialized:!1,sets:{},navSetIds:[],navSetsLoading:!1,navSetsLoadingLong:!1,exhausted:!1}},I=function(e,t){var n=t.payload,r=n.ids,o=n.additive,i=Object(k.x)(e.sets.selectedSetIds,r,o);e.sets.selectedSetIds=i,Object(S.b)(Object(a.a)(i)),e.sets.selectedClientHistoryItemId=O.a,Object(x.e)(e)},P=function(e,t){var n=t.payload,r=Object(u.k)(e.sets.selectedSetIds,n);e.sets.selectedSetIds=r,Object(S.b)(Object(a.a)(r)),e.sets.selectedClientHistoryItemId=O.a,Object(x.e)(e)},L=function(e,t){t.payload.forEach((function(t){Object(k.v)(e.sets,t)}))},_=function(e,t){var n=t.payload,r=n.fetchedSets,o=n.querySetIds,c=Object(a.a)(o);r.forEach((function(t){if(t.id){c=Object(u.j)(c,(function(e){return e===t.id})),Object(k.y)(e.sets,t.id);var n=Object(l.e)(t,"folders"),r=n?e.sets.collections.sets:e.sets.remoteClients.sets,o=Object(i.a)(Object(i.a)(Object(i.a)({},r[t.id]),t),{},{loaded:Object(s.m)()});r[t.id]=n?Object(v.y)(o):o,Object(k.w)(e.sets,t.id)}})),c.length&&(Object(h.f)("unmatched query set ids (".concat(c,") of (").concat(o,"). possible deletion or insufficient privileges.")),c.forEach((function(t){Object(k.w)(e.sets,t),Object(k.q)(e.sets,t)})))},R=function(e,t){var n=t.payload,r=n.error,o=n.querySetIds;Object(p.d)("Full sets fetch failed (".concat(o,"): ").concat(r)),o.forEach((function(t){Object(k.w)(e.sets,t)}))},N=function(e,t){var n=t.payload,r=n.invert,i=n.showAllItemMatches,a=n.limitToUnitIds,c=W.selectedSetGroups({content:e}),l=c.windows,s=c.folders,f=W.searchTerms({content:e}),d=W.filterSearchTerms({content:e}),p=!f&&!d||i?l||s:l?Object(w.d)(l):Object(w.c)(s),h=[],b=new Set,m=Object(v.r)(p);if(a){var y,g=Object(u.q)(m.filter((function(e){var t=e.id;return a.includes(t)})).map((function(e){return e.url}))),O=Object(o.a)(m);try{for(O.s();!(y=O.n()).done;){var j=y.value;(r?!g.includes(j.url):g.includes(j.url))&&h.push(j.id)}}catch(C){O.e(C)}finally{O.f()}}else{var k,S=Object(o.a)(m);try{for(S.s();!(k=S.n()).done;){var E=k.value;b.has(E.url)?r||h.push(E.id):(b.add(E.url),r&&h.push(E.id))}}catch(C){S.e(C)}finally{S.f()}}Object(x.h)(e,{payload:{unitIds:h}})},M=function(e){var t;1===(t=e.sets.selectedSetIds).length&&Object(k.r)(t[0])||(Object(x.g)(e),e.sets.selectedSetIds=C(),Object(S.b)(Object(a.a)(e.sets.selectedSetIds)))},A=function(e,t){var n=t.payload;e.sets.searchTerms=n},D=function(e,t){var n=t.payload;e.sets.filterSearchTerms=n},F=function(e,t){var n=t.payload;e.sets.searchResults=n},z=function(e,t){var n=t.payload;e.sets.searchResultsLoading=n},B=function(e){e.sets.searchTerms=null,e.sets.filterSearchTerms=null,e.sets.searchResults=null,e.sets.searchResultsLoading=!1},H=["setsSelected","setsDeselected","fetchFullSetsStarted","fetchFullSetsSucceeded","fetchFullSetsFailed"];function U(e){return{rangeSelectAndHydrateSets:function(e){var n=e.id,r=e.additive;return function(e,o){var i=o().content,c=[v.j].concat(Object(a.a)(i.sets.remoteClients.navSetIds),Object(a.a)(i.sets.collections.navSetIds)),u=i.sets.selectedSetIds.findLast((function(e){return c.includes(e)}));e(t({ids:Object(d.b)({selectedItem:n,anchorItem:u,allItems:c}),additive:r}))}},toggleSelectAndHydrateSet:function(n){return function(r,o){r(o().content.sets.selectedSetIds.includes(n)?e.setsDeselected([n]):t({ids:[n],additive:!0}))}},selectAndHydrateSets:t,selectPrevNavSet:function(){return function(){var e=Object(r.a)(E().mark((function e(n,r){var o,i,a,c;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=W.beforeSelectedNavSetId(r(),{fallBackToHead:!0})){e.next=3;break}return e.abrupt("return",n(t({ids:[v.j]})));case 3:return e.next=5,n(t({ids:[o]}));case 5:return i=r().content.sets,a=i.collections,c=i.selectedSetIds,e.abrupt("return",a.navSetIds.length&&c.includes(a.navSetIds[0])?"scroll-top":void 0);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectNextNavSet:function(){return function(){var e=Object(r.a)(E().mark((function e(n,r){var o,i,a,c;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=W.afterSelectedNavSetId(r(),{fallBackToHead:!0})){e.next=3;break}return e.abrupt("return",n(t({ids:[v.j]})));case 3:return e.next=5,n(t({ids:[o]}));case 5:return i=r().content.sets,a=i.collections,c=i.selectedSetIds,e.abrupt("return",a.navSetIds.length?c.includes(a.navSetIds[0])?"scroll-top":c.includes(a.navSetIds.at(-1))?"scroll-bottom":void 0:void 0);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectFirstNavSet:function(){return function(e,n){var r=n().content.sets,o=r.selectedSetIds,i=r.collections;if(!o.length)return e(t({ids:[v.j]}));var a=i.navSetIds[0];return!a||1===o.length&&i.navSetIds[0]&&i.navSetIds[0]===o[0]?e(t({ids:[v.j]})):e(t({ids:[a]}))}},selectLastNavSet:function(){return function(e,n){var r;return e(t({ids:[null!==(r=n().content.sets.collections.navSetIds.at(-1))&&void 0!==r?r:v.j]}))}},selectPostDeleteNavSet:function(){return function(){var e=Object(r.a)(E().mark((function e(n,r){var o,i,a,c,u;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r(),i=W.afterSelectedNavSetId(o,{skipSelected:!0})||W.beforeSelectedNavSetId(o,{skipSelected:!0})||v.j,e.next=4,n(t({ids:[i]}));case 4:return a=r().content.sets,c=a.collections,u=a.selectedSetIds,e.abrupt("return",c.navSetIds.length?u.includes(c.navSetIds[0])?"scroll-top":u.includes(c.navSetIds.at(-1))?"scroll-bottom":void 0:void 0);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},fetchFullSets:n};function t(t){var o=t.ids,i=t.additive;return function(){var t=Object(r.a)(E().mark((function t(r,a){var c,l;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(e.setsSelected({ids:Object(u.q)(o),additive:i})),c=a(),l=c.content,t.next=4,r(n(l.sets.selectedSetIds));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function n(t){return function(){var n=Object(r.a)(E().mark((function n(r,o){var i,a,c,u;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=o(),a=i.content,(c=t.filter((function(e){return!Object(k.r)(e)&&!Object(k.t)(a.sets,e)}))).length){n.next=4;break}return n.abrupt("return");case 4:return r(e.fetchFullSetsStarted(c)),n.prev=5,n.next=8,Object(b.f)(c);case 8:u=n.sent,r(e.fetchFullSetsSucceeded({fetchedSets:u,querySetIds:c})),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),r(e.fetchFullSetsFailed({error:(null===n.t0||void 0===n.t0?void 0:n.t0.message)||n.t0,querySetIds:c}));case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(e,t){return n.apply(this,arguments)}}()}}var W={selectedSetIds:function(e){return e.content.sets.selectedSetIds},selectedSetWindows:function(e){return G(e.content.sets)},selectedSetFolders:function(e){return V(e.content.sets)},selectedSetGroups:Object(c.a)((function(e){return e.content.sets}),(function(e){var t=G(e);return t?{windows:Object(w.b)(t,e.searchTerms||e.filterSearchTerms,!!e.selectedClientHistoryItemId)}:{folders:Object(w.a)(V(e)||[],e.searchTerms||e.filterSearchTerms)}})),beforeSelectedNavSetId:function(e){var t=e.content,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipSelected,o=n.fallBackToHead,i=[v.j].concat(Object(a.a)(t.sets.remoteClients.navSetIds),Object(a.a)(t.sets.collections.navSetIds)),c=t.sets.selectedSetIds.findLast((function(e){return i.includes(e)}));if(c){var u=r?i.filter((function(e){return e===c||!t.sets.selectedSetIds.includes(e)})):i,l=u.indexOf(c);if(!(l<0))return u[l-1]||(o?c:void 0)}},afterSelectedNavSetId:function(e){var t=e.content,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipSelected,o=n.fallBackToHead,i=[v.j].concat(Object(a.a)(t.sets.remoteClients.navSetIds),Object(a.a)(t.sets.collections.navSetIds)),c=t.sets.selectedSetIds.findLast((function(e){return i.includes(e)}));if(c){var u=r?i.filter((function(e){return e===c||!t.sets.selectedSetIds.includes(e)})):i,l=u.indexOf(c);if(!(l<0))return u[l+1]||(o?c:void 0)}},selectedSetsHaveDuplicateUnits:function(e){var t,n=e.content,r=e.settings,i=W.selectedSetGroups({content:n}),a=i.windows,c=i.folders,u=W.searchTerms({content:n}),l=W.filterSearchTerms({content:n}),s=!u&&!l||r.showAllItemMatches?a||c:a?Object(w.d)(a):Object(w.c)(c),f=new Set,d=Object(o.a)(Object(v.r)(s));try{for(d.s();!(t=d.n()).done;){var p=t.value;if(f.has(p.url))return!0;f.add(p.url)}}catch(h){d.e(h)}finally{d.f()}return!1},selectedSetsHaveUnits:function(e){var t=e.content;if(W.onlyLocalClientIsSelected({content:t})&&t.sets.selectedClientHistoryItemId){var n,r=null===(n=Object(k.f)(t.sets,t.sets.selectedClientHistoryItemId))||void 0===n?void 0:n.windows;if(r){var i,a=Object(o.a)(r);try{for(a.s();!(i=a.n()).done;){if(i.value.tabs.length)return!0}}catch(x){a.e(x)}finally{a.f()}}return!1}var c,u=Object(o.a)(t.sets.selectedSetIds);try{for(u.s();!(c=u.n()).done;){var l=c.value,s=Object(k.r)(l)&&t.sets.localWindows;if(s){var f,d=Object(o.a)(s);try{for(d.s();!(f=d.n()).done;){if(f.value.tabs.length)return!0}}catch(x){d.e(x)}finally{d.f()}}else{var p=Object(k.g)(t.sets,l);if(p){var h,v,b=Object(o.a)(null!==(h=p.folders)&&void 0!==h?h:[]);try{for(b.s();!(v=b.n()).done;){if(v.value.links.length)return!0}}catch(x){b.e(x)}finally{b.f()}}else{var m=Object(k.n)(t.sets,l);if(m){var y,g,w=Object(o.a)(null!==(y=m.windows)&&void 0!==y?y:[]);try{for(w.s();!(g=w.n()).done;){if(g.value.tabs.length)return!0}}catch(x){w.e(x)}finally{w.f()}}}}}}catch(x){u.e(x)}finally{u.f()}return!1},selectedSetDateTexts:function(e){var t=e.content.sets;if(1!==t.selectedSetIds.length)return null;if(Object(k.r)(t.selectedSetIds[0])){if(!t.selectedClientHistoryItemId)return null;var n=Object(k.f)(t,t.selectedClientHistoryItemId);if(n)return{primary:Object(f.d)(m.a.date(n.id,{format:"relative"})),secondary:""}}var r=Object(k.g)(t,t.selectedSetIds[0],!0);if(r){var o=r.created,i=r.updated,a=o&&i&&+o<+i;return{primary:Object(f.d)(Object(v.s)(o,i)),secondary:a?Object(f.d)(Object(v.s)(o)):""}}var c=Object(k.n)(t,t.selectedSetIds[0],!0);return(null===c||void 0===c?void 0:c.updated)?{primary:Object(f.d)(m.a.date(c.updated,{format:"long"})),secondary:Object(f.d)(m.a.date(c.updated,{format:"relative",verb:"updated"}))}:null},selectedSetTitle:function(e){var t=e.content,n=e.settings;if(1===t.sets.selectedSetIds.length){var r=t.sets.selectedSetIds[0];if(Object(k.r)(r)){var o=t.sets.clientHistory.sets[t.sets.selectedClientHistoryItemId];return o?"".concat(Object(f.d)(y.a.clientHistoryItemType(o.type))," \u2022 ").concat(Object(f.d)(m.a.shortDate(o.id))):Object(g.l)("clientTitle")({settings:n})}var i=Object(k.g)(t.sets,r,!0);if(i)return i.title;var a=Object(k.n)(t.sets,r,!0);if(a)return a.title}else if(t.sets.selectedSetIds.length>1){var c;return null===(c=Object(k.e)(t.sets,(function(e){return!!e.title})))||void 0===c?void 0:c.title}},lastSelectedCollection:function(e){var t,n=e.content;return null!==(t=Object(k.e)(n.sets,(function(e){return!!e.title})))&&void 0!==t?t:Object(k.e)(n.sets)},someSelectedSetsAreLoading:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return Object(k.t)(t.sets,e)}))||W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId&&Object(k.t)(t.sets,t.sets.selectedClientHistoryItemId)},someSelectedSetsAreInvalid:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return Object(k.s)(t.sets,e)}))},allSelectedSetsAreInvalid:function(e){var t=e.content;return t.sets.selectedSetIds.every((function(e){return Object(k.s)(t.sets,e)}))},selectedSetInfo:function(e){var t=e.content,n=t.sets.selectedSetIds,r=n.length,o=n.filter((function(e){return Object(k.s)(t.sets,e)})).length,i=o>0,a=i&&o===r;return{total:r,invalid:o,none:!r,someInvalid:i,multipleInvalid:o>1,singleInvalid:1===o,allInvalid:a,partialInvalid:i&&!a}},someSelectedSetsAreUnhydrated:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return!Object(k.r)(e)&&!Object(k.s)(t.sets,e)&&Object(k.u)(Object(k.m)(t.sets,e,!0))}))||W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId&&Object(k.u)(Object(k.f)(t.sets,t.sets.selectedClientHistoryItemId))},someSelectedSetsArePending:function(e){var t=e.content;return W.someSelectedSetsAreLoading({content:t})||W.someSelectedSetsAreUnhydrated({content:t})},someSelectedSetsArePendingOrInvalid:function(e){var t=e.content;return W.someSelectedSetsArePending({content:t})||W.someSelectedSetsAreInvalid({content:t})},noSetIsSelected:function(e){return!e.content.sets.selectedSetIds.length},multipleSetsAreSelected:function(e){return e.content.sets.selectedSetIds.length>1},localClientIsSelected:function(e){return e.content.sets.selectedSetIds.some(k.r)},singleClientIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})||W.singleRemoteClientIsSelected({content:t})},onlyLocalClientIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&Object(k.r)(t.sets.selectedSetIds[0])},onlyLocalClientNowIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})&&!t.sets.selectedClientHistoryItemId},onlyLocalClientEventIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId},singleRemoteClientIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&!!Object(k.n)(t.sets,t.sets.selectedSetIds[0],!0)},singleCollectionIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&!!Object(k.g)(t.sets,t.sets.selectedSetIds[0],!0)},onlyClientsAreSelected:function(e){return q(e.content.sets)},onlyCollectionsAreSelected:function(e){var t=e.content;return t.sets.selectedSetIds.length>0&&t.sets.selectedSetIds.every((function(e){return!!Object(k.g)(t.sets,e,!0)}))},selectedSetCount:function(e){return e.content.sets.selectedSetIds.length},selectedClientCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return Object(k.r)(e)||!!Object(k.n)(t.sets,e,!0)})).length},selectedRemoteClientCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(k.n)(t.sets,e,!0)})).length},selectedCollectionCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(k.g)(t.sets,e,!0)})).length},selectedCollectionIds:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(k.g)(t.sets,e,!0)}))},searchTerms:function(e){return e.content.sets.searchTerms},filterSearchTerms:function(e){return e.content.sets.filterSearchTerms},searchResults:function(e){return e.content.sets.searchResults},searchResultsLoading:function(e){return e.content.sets.searchResultsLoading}};function q(e){return e.selectedSetIds.length>0&&e.selectedSetIds.every((function(t){return Object(k.r)(t)||!!Object(k.n)(e,t,!0)}))}function G(e){if(q(e))return e.selectedSetIds.map((function(t,n){return function(e){var t,n,r,o,a=e.sets,c=e.setId,u=e.setInfo,l=Object(k.r)(c)?a.selectedClientHistoryItemId?null!==(t=null===(n=Object(k.f)(a,a.selectedClientHistoryItemId))||void 0===n?void 0:n.windows)&&void 0!==t?t:[]:a.localWindows:null!==(r=null===(o=Object(k.n)(a,c))||void 0===o?void 0:o.windows)&&void 0!==r?r:[];return u?K(l,Object(i.a)({type:Object(k.r)(c)?a.selectedClientHistoryItemId?"history":"session":"client"},u)):l}({sets:e,setId:t,setInfo:e.selectedSetIds.length>1?{idx:n,totalCount:e.selectedSetIds.length}:void 0})})).flat()}function V(e){if(!q(e))return e.selectedSetIds.map((function(t,n){return function(e){var t,n=e.sets,r=e.setId,o=e.setInfo;if(Object(k.r)(r)){var a,c,u=(n.selectedClientHistoryItemId?null!==(a=null===(c=Object(k.f)(n,n.selectedClientHistoryItemId))||void 0===c?void 0:c.windows)&&void 0!==a?a:[]:n.localWindows).map((function(e){return Object(k.c)(e,void 0,void 0,!0)}));return o?K(u,Object(i.a)({type:n.selectedClientHistoryItemId?"history":"session"},o)):u}if(Object(k.s)(n,r))return[];var l=Object(k.g)(n,r);if(l){var s,f=null!==(s=l.folders)&&void 0!==s?s:[];return o?K(f,Object(i.a)({type:"collection",title:l.title},o)):f}var d=Object(k.n)(n,r),p=(null!==(t=null===d||void 0===d?void 0:d.windows)&&void 0!==t?t:[]).map((function(e){return Object(k.c)(e)}));return o?K(p,Object(i.a)({type:"client"},o)):p}({sets:e,setId:t,setInfo:e.selectedSetIds.length>1?{idx:n,totalCount:e.selectedSetIds.length}:void 0})})).flat()}function K(e,t){var n=t.type,r=t.title,o=t.idx,a=t.totalCount,c=j.a.inSet({type:n,title:r,idx:o,totalCount:a});return e.map((function(e){return Object(i.a)(Object(i.a)({},e),{},{_setText:c})}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return m}));var r=n(3),o={gray:"#999",blue:"#0097ff",green:"#6ab200",yellow:"#ca9f00",red:"#d54040"},i="#99999922",a="#0097ff22",c="#6ab20022",u="#ca9f0022",l="#d5404022";function s(e,t){return function(n){return function(e,t){var n,o=t.color1,i=t.color2,a=e.map((function(e){return e.map((function(e){return y(e)})).join("")})),c=m(o),u=m(i),l=e.map((function(e){return e.map((function(e,t){return t%2?u:c}))})).flat();(n=console).log.apply(n,[a.join("\n\r")].concat(Object(r.a)(l)))}(n,{color1:e,color2:t})}}var f=b(o.gray),d=b(o.blue),p=b(o.green),h=b(o.yellow),v=b(o.red);b(o.gray,i),b(o.blue,a),b(o.green,c),b(o.yellow,u),b(o.red,l);function b(e,t){return function(){for(var n,o=arguments.length,i=new Array(o),a=0;a0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function c(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,c=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-c*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),a({type:l,values:s})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?f(e,t):d(e,t)}function s(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));var r,o,i=n(2);function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var c=null===(r=globalThis.chrome)||void 0===r?void 0:r.runtime,u=null===(o=globalThis.chrome)||void 0===o?void 0:o.management;function l(){return s.apply(this,arguments)}function s(){return(s=Object(i.a)(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===u||void 0===u||null===(t=u.getSelf)||void 0===t?void 0:t.call(u);case 2:return r=e.sent,e.abrupt("return",null!==(n=null===r||void 0===r?void 0:r.installType)&&void 0!==n?n:"unknown");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){var e;return null!==(e=null===c||void 0===c?void 0:c.id)&&void 0!==e?e:""}function d(){var e,t,n;return null!==(e=null===c||void 0===c||null===(t=c.getManifest)||void 0===t||null===(n=t.call(c))||void 0===n?void 0:n.name)&&void 0!==e?e:""}function p(){var e,t,n;return null!==(e=null===c||void 0===c||null===(t=c.getManifest)||void 0===t||null===(n=t.call(c))||void 0===n?void 0:n.version)&&void 0!==e?e:""}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"h",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return v}));var r=n(75),o=n(24);function i(){return"window"in globalThis}var a=["altKey","ctrlKey","metaKey","shiftKey"];function c(e){var t=e.single,n=e.double,r=e.stopPropagation,i=e.leftButtonOnly;return function(e){r&&e.stopPropagation(),i&&!u(e)||(1===e.detail&&(null===t||void 0===t||t(Object(o.i)(e,a))),2===e.detail&&(null===n||void 0===n||n(Object(o.i)(e,a))))}}var u=function(e){return 0===e.button&&("mac"!==r.a||!e.ctrlKey)},l=function(e){return"mac"===r.a?e.metaKey:e.ctrlKey},s=function(){return"mac"===r.a?"\u2318":"ctrl"},f=function(e){return"Delete"===e||"mac"===r.a&&"Backspace"===e},d=function(e){return"Home"===e.key||"mac"===r.a&&e.metaKey&&"ArrowUp"===e.key},p=function(e){return"End"===e.key||"mac"===r.a&&e.metaKey&&"ArrowDown"===e.key},h=function(e){return"INPUT"===(null===e||void 0===e?void 0:e.tagName)||"TEXTAREA"===(null===e||void 0===e?void 0:e.tagName)},v=function(e,t){var n=function(n){if(!n.relatedTarget||n.relatedTarget!==e&&!e.contains(n.relatedTarget))return t(n)};return e.addEventListener("focusout",n),function(){e.removeEventListener("focusout",n)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return l}));var r,o=n(57),i=Object(o.b)({name:"confirmation",initialState:{visible:!1,title:"Be kind to yourself",text:"Be kind to yourself"},reducers:{confirmationShown:function(e,t){var n=t.payload,r=n.title,o=n.text,i=n.bypassSetting,a=n.bypassText,c=n.hasOkAction;e.visible=!0,e.title=r,e.text=o,e.bypassSetting=i,e.bypassText=a,e.hasOkAction=c},confirmationHidden:function(e){e.visible=!1}}}),a=i.reducer;function c(e){var t=e.title,n=e.text,o=e.bypass,a=e.bypassSetting,c=e.bypassText,l=void 0===c?"Don't ask again":c,s=e.okAction;return function(e,c){var f=new Promise((function(e){r=function(t){return e(t?null===s||void 0===s?void 0:s():void 0)}}));if(o)return e(u({executeAction:!0})),f;if(a&&c().settings[a])return e(u({executeAction:!0})),f;return e(i.actions.confirmationShown({title:t,text:n,bypassSetting:a,bypassText:l,hasOkAction:!!s})),f}}function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).executeAction;return function(t){var n;null===(n=r)||void 0===n||n(e),r=void 0,t(i.actions.confirmationHidden())}}var l={confirmationVisible:function(e){return e.confirmation.visible},confirmationTitle:function(e){return e.confirmation.title},confirmationText:function(e){return e.confirmation.text},confirmationBypassSetting:function(e){return e.confirmation.bypassSetting},confirmationBypassText:function(e){return e.confirmation.bypassText},hasOkAction:function(e){return!!e.confirmation.hasOkAction}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(104);function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";var r=n(121),o=n(141);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=n(115);function c(e){return function(){var t,n=Object(r.a)(e);if(Object(o.a)()){var c=Object(r.a)(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return function(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?Object(a.a)(e):t}(this,t)}}n.d(t,"a",(function(){return c}))},,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(3),o=n(26),i=n(22),a=n(2);function c(e){this.wrapped=e}function u(e){return new c(e)}function l(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,u=a instanceof c;Promise.resolve(u?a.wrapped:a).then((function(e){u?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(l){o("throw",l)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var c={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=c:(t=n=c,r(e,o))}))},"function"!==typeof e.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(l.prototype[Symbol.asyncIterator]=function(){return this}),l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)};var s=n(29),f=n(100),d=n(50),p=n(51),h=n(5),v=n(108),b=n(12),m=n(77);function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=d.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function g(e){return w.apply(this,arguments)}function w(){return(w=Object(a.a)(y().mark((function e(t){var n,r,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=JSON.stringify(t),r=new TextEncoder,o=r.encode(n),e.next=5,j(o);case 5:return i=e.sent,e.abrupt("return",Object(m.d)(i));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return O.apply(this,arguments)}function O(){return O=Object(a.a)(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(a.a)(y().mark((function e(n,r){var o,i,a,c,u;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return n(null),e.abrupt("return");case 3:return e.prev=3,o=Object(m.b)(t),e.next=7,S(o);case 7:i=e.sent,a=new TextDecoder,c=a.decode(i),u=JSON.parse(c),n(u),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),console.error("Failed to load or decompress data:",e.t0),r(e.t0);case 18:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function j(e){return k.apply(this,arguments)}function k(){return(k=Object(a.a)(y().mark((function e(t){var n,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new CompressionStream("gzip"),(r=n.writable.getWriter()).write(t),r.close(),e.next=6,new Response(n.readable).arrayBuffer();case 6:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return E.apply(this,arguments)}function E(){return(E=Object(a.a)(y().mark((function e(t){var n,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new DecompressionStream("gzip"),(r=n.writable.getWriter()).write(t),r.close(),e.next=6,new Response(n.readable).arrayBuffer();case 6:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var C=n(140),T=n(46),I=n(8),P=n(97),L=n(27),_=n(18),R=n(9),N=n(39);function M(){M=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(E([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}n.d(t,"b",(function(){return q})),n.d(t,"a",(function(){return ae})),n.d(t,"c",(function(){return he})),n.d(t,"h",(function(){return ye})),n.d(t,"f",(function(){return ke})),n.d(t,"e",(function(){return Ee})),n.d(t,"g",(function(){return Te})),n.d(t,"d",(function(){return Ie}));var A=138,D=3,F=4*I.d,z=2*I.h,B="backup",H="~backup-",U="backup-summary-",W="backup-checkpoint-";function q(){return G.apply(this,arguments)}function G(){return G=Object(a.a)(M().mark((function e(){var t,n,r,o,i,c,u,l,d,p=arguments;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=p.length>0&&void 0!==p[0]?p[0]:{}).anyTime,r=t.debug,e.next=3,Object(N.b)(["debugLocalBackup","debug","backupWhenIdle"]);case 3:if(o=e.sent,i=o.debugLocalBackup,c=o.debug,u=o.backupWhenIdle,l=Ye({debugOverride:r,debugLocalBackup:i,debugGeneral:c}),!(d=Ke())){e.next=12;break}return l.debug&&Object(R.b)("\ud83d\udec7 auto-backup skipped: ".concat(d)),e.abrupt("return");case 12:return e.next=14,Object(f.a)();case 14:return e.abrupt("return",navigator.locks.request(B,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(M().mark((function e(t){var r,o,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=new Date,n){e.next=12;break}if(r.getHours()===D&&r.getMinutes()<5){e.next=12;break}if(e.t0=u,!e.t0){e.next=9;break}return e.next=8,Object(v.a)();case 8:e.t0=e.sent;case 9:if(e.t0){e.next=12;break}return e.abrupt("return");case 12:if(t){e.next=15;break}return l.debug&&Object(R.f)("\ud83d\udec7 Cannot run auto backup trigger check. A backup or restore is in progress."),e.abrupt("return");case 15:return e.next=17,Object(s.b)();case 17:return o=e.sent,i=o.settings,e.next=21,i.get("disableAutoBackupRemotely");case 21:if(!e.sent){e.next=25;break}return l.debug&&Object(R.a)("\ud83d\udec7 auto-backup skipped: auto-backup is globally disabled"),e.abrupt("return");case 25:return e.next=27,Object(N.a)("enableAutoBackup");case 27:if(e.sent){e.next=31;break}return l.debug&&Object(R.a)("\ud83d\udec7 auto-backup skipped: auto-backup is disabled"),e.abrupt("return");case 31:return e.next=33,Re();case 33:if(!e.sent){e.next=42;break}if(!l.debug){e.next=42;break}return e.t1=R.f,e.t2="auto-backup: web storage usage is high: ",e.next=39,Object(P.b)();case 39:e.t3=e.sent,e.t4=e.t2.concat.call(e.t2,e.t3,"%"),(0,e.t1)(e.t4);case 42:return e.next=44,V({log:l});case 44:return e.next=46,K({log:l});case 46:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 15:case"end":return e.stop()}}),e)}))),G.apply(this,arguments)}function V(e){var t=e.log;return t.debug&&Object(R.d)("-----------------------------------\n--- AUTO-BACKUP FOR COLLECTIONS ---\n-----------------------------------"),$({type:"collections",getDbChangedDate:Z,checkForClearingEvent:function(){var e=Object(a.a)(M().mark((function e(){var t;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.h)();case 2:return t=e.sent,e.abrupt("return",void 0!==t&&t<20);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),getDbOldestCreatedDate:ne,backup:ue,log:t})}function K(e){var t=e.log;return t.debug&&Object(R.d)("------------------------------\n--- AUTO-BACKUP FOR EVENTS ---\n------------------------------"),$({type:"events",getDbChangedDate:ee,checkForClearingEvent:function(){return Promise.resolve(!0)},getDbOldestCreatedDate:oe,backup:se,log:t})}function $(e){return Y.apply(this,arguments)}function Y(){return(Y=Object(a.a)(M().mark((function e(t){var n,r,o,i,a,c,u,l,s,f,d,p,h,v;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,r=t.getDbChangedDate,o=t.checkForClearingEvent,i=t.getDbOldestCreatedDate,a=t.backup,c=t.log,e.next=3,Q(n);case 3:if(!(u=e.sent)){e.next=30;break}if(!((l=Object(I.k)(Object(I.m)()-F))&&l0&&void 0!==d[0]?d[0]:{}).type,r=t.logProgress,e.next=3,Object(N.b)(["debugLocalBackup","debug"]);case 3:if(i=e.sent,c=i.debugLocalBackup,u=i.debug,l=Ye({debugLocalBackup:c,debugGeneral:u,logProgress:r}),!(s=Ke())){e.next=14;break}if(f={status:"error",message:"Backup failed. ".concat(s,".")},l.progress&&Object(R.b)(f.message),!n){e.next=13;break}return e.abrupt("return",Object(o.a)({},n,f));case 13:return e.abrupt("return",{collections:f,events:f});case 14:return e.abrupt("return",navigator.locks.request(B,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(M().mark((function e(t){var r;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=6;break}if(r={status:"skipped",message:"Cannot run backup. A backup or restore is in progress."},l.progress&&Object(R.f)(r.message),!n){e.next=5;break}return e.abrupt("return",Object(o.a)({},n,r));case 5:return e.abrupt("return",{collections:r,events:r});case 6:return e.next=8,Re();case 8:if(!e.sent){e.next=16;break}return e.t0=R.f,e.t1="Web storage usage is high: ",e.next=13,Object(P.b)();case 13:e.t2=e.sent,e.t3=e.t1.concat.call(e.t1,e.t2,"%"),(0,e.t0)(e.t3);case 16:if(!n){e.next=31;break}if(e.t4=o.a,e.t5={},e.t6=n,"collections"!==n){e.next=26;break}return e.next=23,ue({log:l});case 23:e.t7=e.sent,e.next=29;break;case 26:return e.next=28,se({log:l});case 28:e.t7=e.sent;case 29:return e.t8=e.t7,e.abrupt("return",(0,e.t4)(e.t5,e.t6,e.t8));case 31:return e.next=33,ue({log:l});case 33:return e.t9=e.sent,e.next=36,se({log:l});case 36:return e.t10=e.sent,e.abrupt("return",{collections:e.t9,events:e.t10});case 38:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 15:case"end":return e.stop()}}),e)}))),ce.apply(this,arguments)}function ue(e){return le.apply(this,arguments)}function le(){return(le=Object(a.a)(M().mark((function e(t){var n,r,o,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t.log).progress&&Object(R.d)("Backing up collections..."),e.next=4,Object(N.b)(["backupCollectionsMax","backupChunkSize"]);case 4:return r=e.sent,o=r.backupCollectionsMax,i=r.backupChunkSize,e.abrupt("return",de({type:"collections",getDbCount:d.h,chunkSize:i,max:o,fetchChunk:function(e){return Object(d.c)({from:e?{pinnedTouchedTuple:[e.pinned,e.touched],collectionId:e.id}:void 0,limit:i}).then((function(e){var t;return{main:e.main.map(h.F),boundary:null===(t=e.boundary)||void 0===t?void 0:t.map(h.F)}}))},log:n}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){return fe.apply(this,arguments)}function fe(){return(fe=Object(a.a)(M().mark((function e(t){var n,r,o,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t.log).progress&&Object(R.d)("Backing up events..."),e.next=4,Object(N.b)(["backupEventsMax","backupChunkSize"]);case 4:return r=e.sent,o=r.backupEventsMax,i=r.backupChunkSize,e.abrupt("return",de({type:"events",getDbCount:p.j,chunkSize:i,max:o,fetchChunk:function(e){return Object(p.e)({lastItemId:null===e||void 0===e?void 0:e.id,limit:i}).then((function(e){return{main:e.map(h.G)}}))},log:n}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function de(e){return pe.apply(this,arguments)}function pe(){return(pe=Object(a.a)(M().mark((function e(t){var n,o,i,a,c,u,l,s,f,d,p,h,v,m,y,g,w,x,O,j,k,S,E,C,T,P,N,A;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,o=t.getDbCount,i=t.chunkSize,a=t.max,c=t.fetchChunk,u=t.log,!(l=u.checkpoints?$e(n):void 0)){e.next=5;break}return e.next=5,l("getting DB count...");case 5:return e.next=7,o();case 7:if(s=e.sent){e.next=15;break}if(f=null==s?"error accessing ".concat(n):"no ".concat(n," to back up"),u.progress&&Object(R.a)("\ud83d\udec7 ".concat(n," backup skipped: ").concat(f)),!l){e.next=14;break}return e.next=14,l("done");case 14:return e.abrupt("return",{status:"skipped",message:f});case 15:if(d=Object(I.m)(),!l){e.next=19;break}return e.next=19,l("clearing backup...");case 19:return e.next=21,be(n);case 21:e.prev=21,h=0,v=0,m=0,y=new Set,g=Ve({type:n,chunkSize:i,max:a,checkpoint:l}),w=g.saveItems,x=g.flush;case 27:if(v++,!l){e.next=32;break}return e.next=32,l("fetching page ".concat(v," (size: ").concat(i,", count: ").concat(h,")..."));case 32:return e.next=34,c(p);case 34:if(O=e.sent,j=(O.boundary||[]).filter((function(e){var t=e.id;return!y.has(t)})),(k=[].concat(Object(r.a)(j),Object(r.a)(O.main))).forEach((function(e){var t=e.id;return y.add(t)})),S=O.main.length!==i,h+k.length>a&&(E=Math.max(0,a-h),u.debug&&Object(R.f)("Backup count limit reached for ".concat(n,": ").concat(a," items. current count: ").concat(h,". trimming items from ").concat(k.length," to ").concat(E)),S=!0,k.length=E),!k.length){e.next=46;break}return p=Object(b.g)(k),e.next=44,w(k);case 44:h+=k.length,u.progress&&(C=10*Math.round(h/Math.min(a,s)*10))>m&&C<100&&(m=C,Object(R.a)("".concat(m,"% ").concat(n," backed up")));case 46:if(!S){e.next=48;break}return e.abrupt("break",50);case 48:e.next=27;break;case 50:return e.next=52,x();case 52:if(h){e.next=59;break}if(T="backup storage at capacity (".concat(s.toLocaleString("en-US")," ").concat(n," not backed up)"),u.progress&&Object(R.a)("\ud83d\udec7 ".concat(n," backup skipped: ").concat(T)),!l){e.next=58;break}return e.next=58,l("done");case 58:return e.abrupt("return",{status:"skipped",message:T});case 59:if(!l){e.next=62;break}return e.next=62,l("generating summary...");case 62:return P=Math.round(Object(I.m)()-d),e.t0=Object(I.n)(),e.t1=h,e.t2=P,e.t3=L.b,e.next=69,Me(n);case 69:return e.t4=e.sent,e.next=72,(0,e.t3)(e.t4);case 72:if(e.t5=e.sent,e.t6=i,e.t7=s,e.t8=a,N={timestamp:e.t0,count:e.t1,duration:e.t2,usage:e.t5,chunkSize:e.t6,dbCount:e.t7,max:e.t8,version:1},!l){e.next=80;break}return e.next=80,l("saving summary...");case 80:return e.next=82,He(n,N);case 82:if(!l){e.next=85;break}return e.next=85,l("done");case 85:return u.progress&&Object(R.e)("\u2713 ".concat(n," backed up (").concat(h.toLocaleString("en-US")," of ").concat(s.toLocaleString("en-US")," in ").concat((Math.round(P/1e3*100)/100).toLocaleString("en-US")," seconds)")),e.abrupt("return",{status:"success",summary:N});case 89:if(e.prev=89,e.t9=e.catch(21),A=Object(_.a)(e.t9),e.prev=92,!l){e.next=96;break}return e.next=96,l("clearing incomplete backup after exception: ".concat(A));case 96:return e.next=98,be(n);case 98:e.next=102;break;case 100:e.prev=100,e.t10=e.catch(92);case 102:if(e.prev=102,u.progress&&Object(R.b)("\u2717 ".concat(n," backup failed: ").concat(A)),!l){e.next=107;break}return e.next=107,l("backup failed: ".concat(A));case 107:return e.abrupt("return",{status:"error",message:A});case 109:case"end":return e.stop()}}),e,null,[[21,89],[92,100,102,109]])})))).apply(this,arguments)}function he(e){return ve.apply(this,arguments)}function ve(){return ve=Object(a.a)(M().mark((function e(t){var n,r,o=arguments;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(o.length>1&&void 0!==o[1]?o[1]:{}).minSize,!(r=Ke())){e.next=4;break}return e.abrupt("return","Backup clear failed. ".concat(r,"."));case 4:return e.abrupt("return",navigator.locks.request(B,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(M().mark((function e(r){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return","Can't clear right now. A backup or restore is in progress.");case 2:if(!t){e.next=4;break}return e.abrupt("return",be(t,{minSize:n}));case 4:return e.next=6,be("collections",{minSize:n});case 6:return e.next=8,be("events",{minSize:n});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:case"end":return e.stop()}}),e)}))),ve.apply(this,arguments)}function be(e){return me.apply(this,arguments)}function me(){return me=Object(a.a)(M().mark((function e(t){var n,o,a,c,u,l,s,f,d=arguments;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(d.length>1&&void 0!==d[1]?d[1]:{}).minSize,!Object(T.c)(n)){e.next=7;break}return e.next=4,ze(t);case 4:if(!((o=e.sent)&&Object(T.c)(o.usage)&&o.usageo)){e.next=30;break}return e.abrupt("return","Expected last chunk size ".concat(o," or less for ").concat(h," but found ").concat(b.length));case 30:e.next=34;break;case 32:if(b.length===o){e.next=34;break}return e.abrupt("return","Expected chunk size ".concat(o," for ").concat(h," but found ").concat(b.length));case 34:l+=b.length,u++;case 36:e.next=16;break;case 38:e.next=43;break;case 40:e.prev=40,e.t0=e.catch(14),d.e(e.t0);case 43:return e.prev=43,d.f(),e.finish(43);case 46:if(l===r){e.next=48;break}return e.abrupt("return","Expected ".concat(t," count to be ").concat(r.toLocaleString("en-US")," but it was ").concat(l.toLocaleString("en-US")));case 48:case"end":return e.stop()}}),e,null,[[14,40,43,46]])})))).apply(this,arguments)}function ke(){return Se.apply(this,arguments)}function Se(){return(Se=Object(a.a)(M().mark((function e(){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ke()){e.next=2;break}return e.abrupt("return",{});case 2:return e.next=4,ze("collections");case 4:return e.t0=e.sent,e.next=7,ze("events");case 7:return e.t1=e.sent,e.abrupt("return",{collections:e.t0,events:e.t1});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ee(e){return Ce.apply(this,arguments)}function Ce(){var e;return e=M().mark((function e(t){var n,r,o,a,c;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(Me(t));case 2:n=e.sent.sort(),r=Object(i.a)(n),e.prev=4,r.s();case 6:if((o=r.n()).done){e.next=19;break}return a=o.value,e.next=10,u(Le(a));case 10:if(c=e.sent,!Array.isArray(c)){e.next=16;break}return e.next=14,c;case 14:e.next=17;break;case 16:Object(R.f)("invalid ".concat(t," chunk for key ").concat(a,": not an array"));case 17:e.next=6;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(4),r.e(e.t0);case 24:return e.prev=24,r.f(),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[4,21,24,27]])})),Ce=function(){return new l(e.apply(this,arguments))},Ce.apply(this,arguments)}function Te(e,t){return Object(L.e)(We(e),(function(e){t(Ue(e)?e:void 0)}))}function Ie(){return Pe.apply(this,arguments)}function Pe(){return(Pe=Object(a.a)(M().mark((function e(){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.a)("".concat(W,"collections"));case 2:return e.t0=e.sent,e.next=5,Object(L.a)("".concat(W,"events"));case 5:return e.t1=e.sent,e.abrupt("return",{collections:e.t0,events:e.t1});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e){return _e.apply(this,arguments)}function _e(){return(_e=Object(a.a)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.a)(t);case 2:if(n=e.sent,!(n&&"string"===typeof n)){e.next=10;break}return e.next=7,x(n);case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=n;case 11:return e.abrupt("return",e.t0);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Re(){return Ne.apply(this,arguments)}function Ne(){return(Ne=Object(a.a)(M().mark((function e(){var t;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(P.b)();case 2:return t=e.sent,e.abrupt("return",!!t&&t>90);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e){return Ae.apply(this,arguments)}function Ae(){return(Ae=Object(a.a)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Fe(t),e.next=3,Object(L.c)();case 3:return e.abrupt("return",e.sent.filter((function(e){return e.startsWith(n)})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;return"".concat(Fe(e)).concat(t.toString().padStart(n,"0"))}function Fe(e){return"".concat(H).concat(e,"-")}function ze(e){return Be.apply(this,arguments)}function Be(){return(Be=Object(a.a)(M().mark((function e(t){var n,r;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=We(t),e.next=3,Object(L.a)(n);case 3:if(!Ue(r=e.sent)){e.next=6;break}return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function He(e,t){return Object(L.i)(We(e),t)}function Ue(e){if(!e||"object"!==typeof e)return!1;var t=e;return"string"===typeof t.timestamp&&!!t.timestamp&&"number"===typeof t.count&&"number"===typeof t.usage&&"number"===typeof t.duration&&"number"===typeof t.chunkSize&&(null==t.max||"number"===typeof t.max)}function We(e){return"".concat(U).concat(e)}function qe(e){var t,n=Object(i.a)(e||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("folders"in r){var o,a,c=Object(i.a)(null!==(o=r.folders)&&void 0!==o?o:[]);try{for(c.s();!(a=c.n()).done;){var u,l,s=a.value,f=Object(i.a)(null!==(u=s.links)&&void 0!==u?u:[]);try{for(f.s();!(l=f.n()).done;){g(l.value)}}catch(w){f.e(w)}finally{f.f()}}}catch(w){c.e(w)}finally{c.f()}}else if("windows"in r){var d,p,h=Object(i.a)(null!==(d=r.windows)&&void 0!==d?d:[]);try{for(h.s();!(p=h.n()).done;){var v,b,m=p.value,y=Object(i.a)(null!==(v=m.tabs)&&void 0!==v?v:[]);try{for(y.s();!(b=y.n()).done;){g(b.value)}}catch(w){y.e(w)}finally{y.f()}}}catch(w){h.e(w)}finally{h.f()}}}}catch(w){n.e(w)}finally{n.f()}return e;function g(e){e.favIconUrl&&"string"===typeof e.favIconUrl&&e.favIconUrl.length>1e3&&delete e.favIconUrl}}function Ge(e,t){return null==t?8:Math.ceil(t/e).toString().length+1}function Ve(e){var t=e.type,n=e.chunkSize,r=e.max,o=e.checkpoint,c=Ge(n,r),u=function(e){return De(t,e,c)},l=[],s=1;return{saveItems:function(e){return Object(a.a)(M().mark((function t(){var r,o,a;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Object(i.a)(e),t.prev=1,r.s();case 3:if((o=r.n()).done){t.next=11;break}if(a=o.value,l.push(a),!(l.length>=n)){t.next=9;break}return t.next=9,f();case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),r.e(t.t0);case 16:return t.prev=16,r.f(),t.finish(16);case 19:return t.abrupt("return",l.length);case 20:case"end":return t.stop()}}),t,null,[[1,13,16,19]])})))()},flush:f};function f(){return d.apply(this,arguments)}function d(){return(d=Object(a.a)(M().mark((function e(){var t;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l.length){e.next=2;break}return e.abrupt("return");case 2:if(!o){e.next=5;break}return e.next=5,o("sanitizing and compressing chunk ".concat(s," (").concat(l.length," items, buffer size: ").concat(n,")..."));case 5:return e.next=7,g(qe(l));case 7:if(t=e.sent,!o){e.next=11;break}return e.next=11,o("saving chunk ".concat(s," (").concat(l.length," items, buffer size: ").concat(n,")..."));case 11:return e.next=13,Object(L.i)(u(s),t);case 13:s++,l.length=0;case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}function Ke(){var e=Object(C.a)();return e&&er?r:o}function a(e){var t=e.selectedItem,n=e.anchorItem,r=e.allItems,o=e.preserveOrder,i=r.indexOf(t);if(i<0)return[];if(null==n||n===t)return[t];var a=r.indexOf(n);if(a<0)return[t];var c=r.slice(Math.min(a,i),Math.max(a,i)+1);return!o&&i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var U,W,q=250,G=function(e){Object(h.a)(n,e);var t=Object(v.a)(n);function n(){var e;Object(f.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=t.immediateLoader,r=void 0!==n&&n,o=t.reset;return function(){var t=Object(u.a)(H().mark((function t(n,i){var a,c,u,l,s,f,d,p,h,v,b,y;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(R.b)(["debug","collectionFetchAll","collectionFetchCountInitial","collectionFetchCountLazy"]);case 2:return a=t.sent,c=a.debug,u=a.collectionFetchAll,l=a.collectionFetchCountInitial,s=a.collectionFetchCountLazy,f=u?999999999:o?l:s,d=++re,p=i(),h=p.content,v=h.sets.searchTerms,n(e.navCollectionsLoadingStopped()),n(e.fetchNavCollectionsStarted()),r?n(e.fetchNavCollectionsLongStarted()):U=window.setTimeout((function(){n(e.fetchNavCollectionsLongStarted())}),q),t.prev=14,o&&n(e.navCollectionsNavSetIdsCleared()),b=o?void 0:Object(D.l)(h.sets),t.next=19,Object(m.c)({partial:!0,from:b?{pinnedTouchedTuple:[b.pinned,b.touched],collectionId:b.id}:void 0,limit:f,searchTerms:v});case 19:if(y=t.sent,re===d){t.next=23;break}return c&&Object(L.f)("collections fetch dropped"),t.abrupt("return");case 23:n(e.fetchNavCollectionsSucceeded({fetchedCollections:y,exhausted:y.main.length!==f})),t.next=31;break;case 26:t.prev=26,t.t0=t.catch(14),n(e.fetchNavCollectionsFailed((null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0)),"NotReadableError"===((null===t.t0||void 0===t.t0?void 0:t.t0.name)||t.t0)&&n(Object(w.a)("collections-NotReadableError"));case 31:case"end":return t.stop()}}),t,null,[[14,26]])})));return function(e,n){return t.apply(this,arguments)}}()},createCollectionFromSelectedSets:n,createCollectionFromLocalWindows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.timestamp,n=void 0===t?Object(C.m)():t;return function(e,t){var r=t(),o=r.content,i=r.settings;if(o.sets.localWindows.length){var a="local-client",c=Object(D.h)({selectedSetCount:1,sourceType:a}),u=c.successText,l=c.failureText,s={id:Object(T.c)(),clientId:x.a.id,sourceType:a,created:n,pinned:0,updated:n,touched:n,folders:Object(D.d)({windows:o.sets.localWindows})};return i.autoNameCollections&&(s.title=_.a.shortDate(Object(C.m)())),e(d({savingCollections:[s],select:!0,successNotificationOpts:{text:u||F.a.collectionSaved()},failureNotificationOpts:{text:l||F.a.failedToSaveCollection(),severity:"error",actionText:F.a.tryAgain(),action:"replay"}}))}}},updateCollection:r,touchCollections:o,touchSelectedCollections:function(){return X(o)},pinCollections:f,pinSelectedCollections:function(){return X(f)},unpinSelectedCollections:function(){return function(e,t){var n,r=t().content,o=r.sets.collections,i=Object(E.e)(o.navSetIds,r.sets.selectedSetIds);return e((n=i,function(e,t){var r=t().content;return e(d({savingCollections:Object(E.q)(n).map((function(e){var t=Object(D.g)(r.sets,e);return t?Object(s.a)(Object(s.a)({},t),{},{pinned:0}):null})).filter(Boolean)}))}))}},deleteCollections:p,deleteSelectedCollections:function(e){return function(){var t=Object(u.a)(H().mark((function t(n,r){var o,i,a,c,u;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),i=o.content,(a=i.sets.selectedSetIds.filter((function(e){return i.sets.collections.sets[e]}))).length){t.next=4;break}return t.abrupt("return");case 4:return c="Delete ".concat(_.a.collection({count:a.length}),"?"),u="".concat(_.a.collection({count:a.length,includeCount:!0})," will be permanently deleted"),t.abrupt("return",n(Object(g.d)({title:c,text:u,bypass:e,bypassSetting:"bypassConfirmCollectionDelete",okAction:function(){n(p(a))}})));case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},unifyCollectionFolders:h,unifySelectedCollectionFolders:function(){return pe((function(e){return h(e)}),null)},overwriteCollectionWithCurrent:v,overwriteSelectedCollectionWithCurrent:function(){return pe((function(e){return v(e)}),null)},sortCollectionLinks:b,sortSelectedCollectionLinks:function(e){return pe((function(t){return b(t,e)}),null)},moveCollectionItems:I,moveSelectedCollectionItems:function(e){return pe((function(t){return I(t,e)}),void 0)},addLinksToCollection:V,addLinksToSelectedCollection:function(e,t){return pe((function(n){return V(e,n,t)}),{links:[]})},deleteItemsFromCollection:K,deleteItemsFromSelectedCollection:function(e){return pe((function(t){return K({itemSelections:e,collection:t})}),void 0)},moveItemsFromCollection:$,moveItemsFromSelectedCollection:function(e){return pe((function(t){return $({itemSelections:e,collection:t})}),void 0)},patchCollectionFolder:Y,patchSelectedCollectionFolder:function(e,t){return pe((function(n){return Y({collection:n,folderId:e,props:t})}),void 0)},patchCollectionLink:Q,patchSelectedCollectionLink:function(e,t){return pe((function(n){return Q({collection:n,linkId:e,props:t})}),void 0)}};function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combine,n=e.selectedItemsOnly,r=e.timestamp,o=void 0===r?Object(C.m)():r,i=e.propagateColor;return function(){var e=Object(u.a)(H().mark((function e(r,a){var c,u,l,f,h,v,b,m,y,g,w,O,k,S,E,I,P,L,R,z,B,U,W;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=a(),l=N.i.selectedSetGroups(u),f=l.windows,h=l.folders,(f||h).length){e.next=4;break}return e.abrupt("return",[]);case 4:return v=u.content.sets.selectedSetIds,b=n?A.j.itemSelections(u):{unitIds:[],groupIds:[]},m=N.i.multipleSetsAreSelected(u),y=N.i.onlyLocalClientIsSelected(u),g=M.r.selectedClientHistoryItemId(u),w=Object(D.i)({multipleSetsAreSelected:m,onlyLocalClientIsSelected:y,isEventSelected:y&&!!g,isFolders:!!h,itemSelections:b}),O="multi"===w&&t,k=Object(D.h)({combining:O,selectedSetCount:v.length,sourceType:w}),S=k.successText,E=k.failureText,I=null!==(c=Object(D.e)(u.content.sets,(function(e){return!!e.title})))&&void 0!==c?c:Object(D.e)(u.content.sets),P=O?I:null,e.next=16,Object(x.b)();case 16:return L=e.sent,R=L.id,z=i&&I?Object(j.c)({id:I.id,color:I.color,defaultCollectionColor:u.settings.defaultCollectionColor}):void 0,B=P||{id:Object(T.c)(),clientId:R,color:z,sourceType:w,created:o,pinned:0},U=Object(s.a)(Object(s.a)({},B),{},{updated:o,touched:o,folders:h?Object(D.b)({folders:h,itemSelections:b}):Object(D.d)({windows:f,itemSelections:b})}),"collection"!==w&&"collection-links"!==w&&"remote-client"!==w&&"remote-client-tabs"!==w||(U.sourceId=v[0]),O||(W=N.i.selectedSetTitle(u))&&("multi"!==w&&"multi-links"!==w&&(U.sourceTitle=W),"local-client-history"!==w&&"local-client-history-tabs"!==w&&"collection"!==w&&"collection-links"!==w&&"multi"!==w&&"multi-links"!==w||(U.title=W)),O&&r(p(v.filter((function(e){return!P||e!==P.id})))),y&&!g&&!U.title&&u.settings.autoNameCollections&&(U.title=_.a.shortDate(Object(C.m)())),e.next=27,r(d({savingCollections:[U],select:!0,successNotificationOpts:{text:S||F.a.collectionSaved()},failureNotificationOpts:{text:E||F.a.failedToSaveCollection(),severity:"error",actionText:F.a.tryAgain(),action:"replay"}}));case 27:return e.abrupt("return",v);case 28:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function r(e){var t=e.collection,n=e.timestamp,r=void 0===n?Object(C.m)():n,o=e.id,i=e.props;return function(){var e=Object(u.a)(H().mark((function e(n,a){var c,u;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=7;break}if(o&&i){e.next=3;break}return e.abrupt("return");case 3:if(c=Object(D.g)(a().content.sets,o)){e.next=6;break}throw new Error("attempt to patch a non-existent or invalid collection (id ".concat(o,")"));case 6:t=Object(s.a)(Object(s.a)({},c),i);case 7:if(Object(k.a)(t)&&!Object(D.u)(t)){e.next=9;break}return e.abrupt("return");case 9:return u=r>0?Object(s.a)(Object(s.a)({},t),{},{updated:r,touched:r}):t,e.abrupt("return",n(d({savingCollections:[u],failureNotificationOpts:{text:F.a.failedToUpdateCollection(),severity:"error",actionText:F.a.tryAgain(),action:"replay"}})));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function o(e){return function(t,n){var r=n().content,o=Object(C.m)(),i=0;return t(d({savingCollections:Object(E.m)(Object(E.q)(e)).map((function(e){var t=Object(D.g)(r.sets,e);return t&&Object(s.a)(Object(s.a)({},t),{},Object(c.a)({},t.pinned?"pinned":"touched",o+i++))})).filter(Boolean)}))}}function f(e){return function(t,n){var r=n().content,o=Object(C.m)(),i=0,a=0,c=Object(E.m)(Object(E.q)(e)).map((function(e){var t=Object(D.g)(r.sets,e);return t?(t.pinned||a++,Object(s.a)(Object(s.a)({},t),{},{pinned:o+i++})):null})).filter(Boolean);if(ie.pinnedCollectionCount({content:r})+a>O.c)throw new G("pinned collection max exceeded");return t(d({savingCollections:c}))}}function d(n){var r=n.savingCollections,o=n.select,i=n.successNotificationOpts,a=n.failureNotificationOpts;return function(){var n=Object(u.a)(H().mark((function n(c,u){var l,f;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.every(k.a)){n.next=3;break}return Object(P.d)("Some saving collections are missing an id",r),n.abrupt("return");case 3:return l=u(),f=l.content,o&&c(e.setsSelected({ids:r.map((function(e){return e.id}))})),c(e.saveCollectionsStarted(r)),c(Object(y.b)()),n.abrupt("return",t((function(){return W={selectedSetIds:f.sets.selectedSetIds,collections:f.sets.collections},Object(m.i)(r.map((function(e){return Object(O.y)(e,!0)})))})).then((function(){W=void 0,i&&c(Object(y.e)(i))})).catch((function(t){if(c(e.saveCollectionsFailed({error:(null===t||void 0===t?void 0:t.message)||t||null,savingCollections:r})),W=void 0,a){var n="replay"===a.action?Object(s.a)(Object(s.a)({},a),{},{action:function(){c(d({savingCollections:r,select:o,successNotificationOpts:i,failureNotificationOpts:a}))}}):a;c(Object(y.e)(n))}})));case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}function p(n){return function(){var r=Object(u.a)(H().mark((function r(o,i){var a,c;return H().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.length){r.next=2;break}return r.abrupt("return");case 2:return a=i(),c=a.content,o(e.selectPostDeleteNavSet()),o(e.deleteCollectionsStarted(n)),o(Object(y.b)()),r.abrupt("return",t((function(){return W={selectedSetIds:c.sets.selectedSetIds,collections:c.sets.collections},Object(m.b)(n)})).then((function(){W=void 0})).catch((function(t){var r;o(e.deleteCollectionsFailed({error:(null===t||void 0===t?void 0:t.message)||t||null,deletingCollectionIds:n})),W=void 0,o(Object(y.e)({text:n.length>1?F.a.failedToDeleteCollections(n.length):F.a.failedToDeleteCollection(null===(r=Object(D.g)(c.sets,n[0],!0))||void 0===r?void 0:r.title),severity:"error",actionText:F.a.tryAgain(),action:function(){o(p(n))}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}()}function h(t){return function(){var n=Object(u.a)(H().mark((function n(o,i){var a,c,u,l,f,d,p;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.folders){n.next=2;break}return n.abrupt("return",null);case 2:if(a=i(),c=A.j.itemSelections(a),u=!!c.unitIds.length,l=t.folders.length>1,f=c.groupIds.length,u||l&&1!==f){n.next=9;break}return n.abrupt("return",null);case 9:return d=Object(s.a)(Object(s.a)({},t),{},{folders:se(t.folders,c)}),p=o(r({collection:d})),o(e.itemsSelected(Object(s.a)(Object(s.a)({},c),{},{allGroups:d.folders}))),n.abrupt("return",p);case 13:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}function v(e){return function(){var t=Object(u.a)(H().mark((function t(n,o){var i,a,c;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.folders){t.next=2;break}return t.abrupt("return",null);case 2:return i=o(),a=i.content,c=Object(s.a)(Object(s.a)({},e),{},{sourceType:"local-client",folders:Object(D.d)({windows:a.sets.localWindows})}),t.abrupt("return",n(r({collection:c})));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function b(e,t){return function(){var n=Object(u.a)(H().mark((function n(o){var i;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.folders){n.next=2;break}return n.abrupt("return",null);case 2:if(e.folders.some((function(e){return e.links&&e.links.length>1}))){n.next=5;break}return n.abrupt("return",null);case 5:return i=Object(s.a)(Object(s.a)({},e),{},{folders:e.folders.map((function(e){var n=Object(E.o)(e.links,(function(e){return!!e.pinned})),r=Object(a.a)(n,2),o=r[0],i=r[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(o),Object(l.a)(de(i,t.by)))})}))}),n.abrupt("return",o(r({collection:i})));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function I(t,n){return function(){var o=Object(u.a)(H().mark((function o(i,a){var c,u,l,f,d,p,h,v,b;return H().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(null===(c=t.folders)||void 0===c?void 0:c.length){o.next=2;break}return o.abrupt("return");case 2:if(u=a(),l=u.content.sets.searchTerms,f=u.content.sets.filterSearchTerms,d=u.settings.showAllItemMatches,!l&&!f||d){o.next=8;break}return o.abrupt("return");case 8:if(p=A.j.itemSelections(u),(h=fe(t.folders,p,n))!==t.folders){o.next=12;break}return o.abrupt("return");case 12:return v=Object(s.a)(Object(s.a)({},t),{},{folders:h}),b=i(r({collection:v})),i(e.itemsSelected(Object(s.a)(Object(s.a)({},p),{},{allGroups:v.folders}))),o.abrupt("return",b);case 16:case"end":return o.stop()}}),o)})));return function(e,t){return o.apply(this,arguments)}}()}function V(e,t,n){var o=n.target,c=void 0===o?{singleFolder:!1}:o,f=c.afterLink,d=c.prependToFolder,p=c.singleFolder,h=n.itemSelections;return function(){var n=Object(u.a)(H().mark((function n(o){var c,u,v,b,m,y,g,w,x,j,k;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.folders){n.next=2;break}return n.abrupt("return",{links:[]});case 2:if(c=e.folders?Object(D.b)({folders:e.folders,itemSelections:h,includeSourceId:!0}):Object(D.d)({windows:e.windows,itemSelections:h,includeSourceId:!0}),!p){n.next=9;break}b=se(c),u=[].concat(Object(l.a)(t.folders),Object(l.a)(b.map((function(e){e.sourceId;return Object(i.a)(e,z)})))),v={folders:b},n.next=29;break;case 9:if(!d){n.next=18;break}if(m=t.folders.find((function(e){return e.id===d}))){n.next=13;break}throw new Error("folder id ".concat(d," does not match any folder in collection ").concat(t.id));case 13:y=[],u=t.folders.map((function(e){if(e!==m)return e;var t=Object(E.o)(Object(O.r)(c),(function(e){return!!e.pinned})),n=Object(a.a)(t,2),r=n[0],o=n[1];y=[].concat(Object(l.a)(r),Object(l.a)(o));var i=Object(E.o)(e.links,(function(e){return!!e.pinned})),u=Object(a.a)(i,2),f=u[0],d=u[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(r),Object(l.a)(f),Object(l.a)(o),Object(l.a)(d))})})),v={links:y},n.next=29;break;case 18:if(!f){n.next=27;break}if(g=Object(O.p)(t.folders,(function(e){return e.id===f})),w=g.group,x=g.unit){n.next=22;break}throw new Error("link id ".concat(f," does not match any link in collection ").concat(t.id));case 22:j=[],u=t.folders.map((function(e){if(e!==w)return e;var t=Object(E.o)(Object(O.r)(c),(function(e){return!!e.pinned})),n=Object(a.a)(t,2),r=n[0],o=n[1];j=[].concat(Object(l.a)(r),Object(l.a)(o));var i=Object(E.o)(e.links,(function(e){return!!e.pinned})),u=Object(a.a)(i,2),f=u[0],d=u[1];if(x.pinned){var p=f.indexOf(x)+1,h=Object(E.p)(f,p),v=Object(a.a)(h,2),b=v[0],m=v[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(b),Object(l.a)(r),Object(l.a)(m),Object(l.a)(o),Object(l.a)(d))})}var y=d.indexOf(x)+1,g=Object(E.p)(d,y),k=Object(a.a)(g,2),S=k[0],C=k[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(f),Object(l.a)(r),Object(l.a)(S),Object(l.a)(o),Object(l.a)(C))})})),v={links:j},n.next=29;break;case 27:u=[].concat(Object(l.a)(t.folders),Object(l.a)(c.map((function(e){e.sourceId;return Object(i.a)(e,B)})))),v={folders:c};case 29:return k=Object(s.a)(Object(s.a)({},t),{},{folders:u}),n.next=32,o(r({collection:k}));case 32:return n.abrupt("return",v);case 33:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function K(t){var n=t.itemSelections,o=t.collectionId,i=t.collection,a=t.timestamp;return function(){var t=Object(u.a)(H().mark((function t(c,u){var l,f,d,p;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i||(i=Object(D.g)(u().content.sets,o)),i&&i.folders){t.next=3;break}return t.abrupt("return");case 3:if(!Object(D.u)(i)&&!Object(D.t)(u().content.sets,i.id)){t.next=5;break}return t.abrupt("return");case 5:return l=i.folders.filter((function(e){return!e.links.length})).map((function(e){return e.id})),f=i.folders.filter((function(e){var t=e.id;return!n.groupIds.includes(t)})).map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:e.links.filter((function(e){var t=e.id;return!n.unitIds.includes(t)}))})})),d=f.filter((function(e){return e.links.length||l.includes(e.id)})),p=Object(s.a)(Object(s.a)({},i),{},{folders:d}),c(e.itemsDeselected(n)),t.abrupt("return",c(r({collection:p,timestamp:a})));case 11:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function $(e){var t=e.itemSelections,r=e.collection;return function(){var e=Object(u.a)(H().mark((function e(o,i){var a;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&r.folders){e.next=2;break}return e.abrupt("return");case 2:if(!Object(D.u)(r)&&!Object(D.t)(i().content.sets,r.id)){e.next=4;break}return e.abrupt("return");case 4:return a=Object(C.m)(),e.next=7,o(n({selectedItemsOnly:!0,timestamp:a+1}));case 7:o(K({itemSelections:t,collectionId:r.id,timestamp:a}));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function Y(e){var t=e.collection,n=e.folderId,o=e.props;return function(){var e=Object(u.a)(H().mark((function e(i){var a;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.folders){e.next=2;break}return e.abrupt("return");case 2:return a=Object(s.a)(Object(s.a)({},t),{},{folders:t.folders.map((function(e){return e.id===n?Object(s.a)(Object(s.a)({},e),o):e}))}),e.abrupt("return",i(r({collection:a})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}function Q(e){var t=e.collection,n=e.linkId,o=e.props;return function(){var e=Object(u.a)(H().mark((function e(i){var a;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.folders){e.next=2;break}return e.abrupt("return");case 2:return a=Object(s.a)(Object(s.a)({},t),{},{folders:t.folders.map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:e.links.map((function(e){return e.id===n?Object(s.a)(Object(s.a)({},e),o):e}))})}))}),e.abrupt("return",i(r({collection:a})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}function X(e){return function(t,n){var r=n().content,o=r.sets.collections,i=Object(E.e)(o.navSetIds,r.sets.selectedSetIds);return t(e(i))}}}var ie={collectionsInitialized:function(e){return e.content.sets.collections.initialized},navCollectionsAreLoading:function(e){return e.content.sets.collections.navSetsLoading},navCollectionsAreLoadingLong:function(e){return e.content.sets.collections.navSetsLoadingLong},navCollectionsIsExhausted:function(e){return!!e.content.sets.collections.exhausted},navCollections:function(e){var t=e.content;return t.sets.collections.navSetIds.map((function(e){return t.sets.collections.sets[e]})).filter(Boolean)},noNavCollectionsExist:function(e){var t=e.content;return!ie.navCollections({content:t}).length},pinnedCollectionCount:function(e){var t,n=e.content,r=0,i=Object(o.a)(n.sets.collections.navSetIds);try{for(i.s();!(t=i.n()).done;){var a=t.value,c=Object(D.g)(n.sets,a);if(c){if(!c.pinned)break;r++}}}catch(u){i.e(u)}finally{i.f()}return r},allSelectedCollectionsAreAtTop:function(e){var t=e.content,n=ie.pinnedCollectionCount({content:t}),r=Object(E.p)(t.sets.collections.navSetIds,n),o=Object(a.a)(r,2),i=o[0],c=o[1],u=Object(E.e)(i,t.sets.selectedSetIds),l=Object(E.e)(c,t.sets.selectedSetIds);return le(u,i)&&le(l,c)},allSelectedCollectionsArePinned:function(e){var t=e.content;return t.sets.selectedSetIds.every((function(e){var n=Object(D.g)(t.sets,e,!0);return!n||n.pinned}))}};function ae(e){e.navSetsLoading=!1,e.navSetsLoadingLong=!1,window.clearTimeout(U)}function ce(e){return function(t,n){var r=Object(D.g)(e,t,!0),o=Object(D.g)(e,n,!0);return r||o?r?o?ue(r,o):-1:1:0}}function ue(e,t){return Object(D.j)(e,t,"pinned")||Object(D.j)(e,t,"touched")||Object(D.j)(e,t,"updated")||Object(D.j)(e,t,"created")}function le(e,t){return t.slice(0,e.length).every((function(t){return e.includes(t)}))}function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{groupIds:[],unitIds:[]};if(!e.length)return[];var n=t.groupIds,o=t.unitIds,i=Object(O.C)(e,t),a=n.map((function(e){return i.find((function(t){return t.id===e}))})).filter((function(e){return!!e})),c=Object(O.r)(i),u=o.map((function(e){return c.find((function(t){return t.id===e}))})).filter((function(e){return!!e})),f=a.length;if(u.length&&!f){var d=Object(O.A)({id:Object(T.c)(),links:u,incognito:i.some((function(e){return e.incognito}))});return[].concat(Object(l.a)(e.map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return!u.includes(e)}))})})).filter((function(e){return e.links.length}))),[d])}var p=f?a:e,h=Object(r.a)(p),v=h[0],b=h.slice(1),m=Object(O.r)(b);return e.filter((function(e){return!b.includes(e)})).map((function(e){return e===v?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(v.links),Object(l.a)(m),Object(l.a)(u))})):Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return!u.includes(e)}))})})).filter((function(e){return e.links.length}))}function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{groupIds:[],unitIds:[]},n=arguments.length>2?arguments[2]:void 0;if(!e.length)return e;var r=t.groupIds,o=t.unitIds;return 1!==o.length||r.length?1!==r.length||o.length?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=t[0],o=e.findIndex((function(e){return e.id===r}));if(o<0||!e[o])return e;return("up"===n.direction?E.h:E.i)(e,o)}(e,r,n):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=t[0],o=Object(O.p)(e,(function(e){return e.id===r})),i=o.group,c=o.groupIdx,u=o.unit,f=o.unitIdx;if(!i||null==c||c<0||!u||null==f||f<0)return e;if(u.pinned)return e;if("up"===n.direction){var d=f-1;if(d<0||i.links[d].pinned){if(g(i,t)){if(0===c)return e;var p=e[c-1];return p?e.map((function(e){return e===p?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(e.links),[u])})):e===i?w(e,u):e})).filter((function(e){return e.links.length})):e}var h=Object(O.A)({id:Object(T.c)(),links:[u],incognito:!!i.incognito}),v=Object(l.a)(e);return v.splice(c,0,h),v.map((function(e){return e===i?w(e,u):e})).filter((function(e){return e.links.length}))}return e.map((function(e){return e===i?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:Object(E.h)(e.links,f)})):e}))}if(f+1>=i.links.length){if(g(i,t)){if(c>=e.length-1)return e;var b=e[c+1];return b?e.map((function(e){return e===b?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:x(e.links,u)})):e===i?w(e,u):e})).filter((function(e){return e.links.length})):e}var m=Object(O.A)({id:Object(T.c)(),links:[u],incognito:!!i.incognito}),y=Object(l.a)(e);return y.splice(c+1,0,m),y.map((function(e){return e===i?w(e,u):e})).filter((function(e){return e.links.length}))}return e.map((function(e){return e===i?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:Object(E.i)(e.links,f)})):e}));function g(e,t){return e.links.every((function(e){var n=e.id;return t.includes(n)}))}function w(e,t){return Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return e!==t}))})}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Object(E.o)(e,(function(e){return!!e.pinned})),r=Object(a.a)(n,2),o=r[0],i=r[1];return[].concat(Object(l.a)(o),[t],Object(l.a)(i))}}(e,o,n)}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.length<2?e:Object(l.a)(e).sort((function(e,n){return Object(I.e)(e[t],n[t])}))}function pe(e,t){return function(){var n=Object(u.a)(H().mark((function n(r,o){var i,a,c;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=o(),a=i.content,c=Object(D.o)(a.sets)){n.next=4;break}return n.abrupt("return",t);case 4:return n.abrupt("return",r(e(c)));case 5:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={};function o(){return r}},,function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=["Win32","Win64","Windows","WinCE"],o=["macOS","Macintosh","MacIntel","MacPPC","Mac68K"],i=["iPhone","iPad","iPod"];var a=function(){var e,t=(null===(e=globalThis.navigator.userAgentData)||void 0===e?void 0:e.platform)||globalThis.navigator.platform;return r.includes(t)?"windows":o.includes(t)?"mac":i.includes(t)?"ios":/Android/.test(globalThis.navigator.userAgent)?"android":/Linux/.test(t)?"linux":void 0}()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return s}));var r=n(3),o=["B","kB","MB","GB","TB"],i=1024,a=1024*i;function c(e){if(!e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(i));return t>=o.length?"Over 1 PB":"".concat(1*+(e/Math.pow(i,t)).toFixed(2)," ").concat(o[t])}var u=16384;function l(e){for(var t=[],n=0;n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l=100,s="logs",f=Object(i.a)();function d(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=void 0===n?"":n,o=t.severity,i=void 0===o?"error":o;return w(Object(c.a)(e,r),i)}function y(){return g.apply(this,arguments)}function g(){return(g=Object(r.a)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)(s);case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0=[];case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,t){return f((function(){return function(e,t){return x.apply(this,arguments)}(e,t)}))}function x(){return(x=Object(r.a)(u().mark((function e(t,n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y();case 3:return(r=e.sent).unshift({timestamp:Object(o.n)(),severity:n,message:t}),e.next=7,Object(a.i)(s,r.slice(0,l));case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error("Failed to update local logs",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}},function(e,t,n){"use strict";function r(){var e,t=0;return function(n){return t||(e=Promise.resolve()),t++,e=e.then(n).finally((function(){t--}))}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(54);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[""],n=[],r=y(e);d(e.schemes.extension,[r]);for(var i=0,u=Object.values(c);i=t||n<0||d&&e-s>=a}function x(){var e=b();if(w(e))return O(e);u=setTimeout(x,function(e){var n=t-(e-l);return d?v(n,a-(e-s)):n}(e))}function O(e){return u=void 0,p&&o?m(e):(o=i=void 0,c)}function j(){var e=b(),n=w(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(x,t),f?m(e):c}(l);if(d)return u=setTimeout(x,t),m(l)}return void 0===u&&(u=setTimeout(x,t)),c}return t=g(t)||0,y(r)&&(f=!!r.leading,a=(d="maxWait"in r)?h(g(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),j.cancel=function(){void 0!==u&&clearTimeout(u),s=0,o=l=i=u=void 0},j.flush=function(){return void 0===u?c:O(b())},j}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return y(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}}).call(this,n(136))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h}));var r=n(2),o=n(9),i=n(39);function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function c(){return u.apply(this,arguments)}function u(){return(u=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:if(!(t=e.sent)){e.next=8;break}if(!("usageDetails"in t&&t.usageDetails&&"object"===typeof t.usageDetails&&"indexedDB"in t.usageDetails&&"number"===typeof t.usageDetails.indexedDB)){e.next=6;break}return e.abrupt("return",t.usageDetails.indexedDB);case 6:if(!("usage"in t)||"number"!==typeof t.usage){e.next=8;break}return e.abrupt("return",t.usage);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return navigator.storage.estimate()}function s(){return f.apply(this,arguments)}function f(){return(f=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=4,l();case 4:t=e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(1);case 9:if(t&&t.quota&&void 0!==t.usage){e.next=11;break}return e.abrupt("return",void 0);case 11:return e.abrupt("return",Math.round(t.usage/t.quota*1e4)/100);case 12:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function d(){return p.apply(this,arguments)}function p(){return(p=Object(r.a)(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:return t=e.sent,e.next=5,Object(i.a)("debug");case 5:if(n=e.sent,null!=t){e.next=9;break}return n&&Object(o.f)("persisted storage API unavailable or navigator.storage.persisted() call threw"),e.abrupt("return");case 9:if(!t){e.next=12;break}return n&&Object(o.d)("persisted storage permission exists"),e.abrupt("return");case 12:if(navigator.storage.persist){e.next=15;break}return n&&Object(o.f)("navigator.storage.persist() unavailable"),e.abrupt("return");case 15:return e.prev=15,e.next=18,navigator.storage.persist();case 18:r=e.sent,n&&(r?o.e:o.f)("persisted storage ".concat(r?"granted":"denied")),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),n&&console.error("call to navigator.storage.persist() failed:",e.t0);case 25:case"end":return e.stop()}}),e,null,[[15,22]])})))).apply(this,arguments)}function h(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,null===(t=navigator.storage)||void 0===t?void 0:t.persisted();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(205),o=(n(0),n(143));function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l}));var r=n(57),o=Object(r.b)({name:"critical-error",initialState:{show:!1,issues:[]},reducers:{criticalErrorRaised:function(e,t){var n=t.payload;e.show=!0,e.issues.includes(n)||e.issues.push(n)},criticalErrorResolved:function(e){e.show=!1,e.issues=[]}}}),i=o.actions,a=i.criticalErrorRaised,c=i.criticalErrorResolved,u=o.reducer,l={criticalErrorShow:function(e){return e.criticalError.show},criticalErrorIssues:function(e){return e.criticalError.issues}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return w}));var r=n(2),o=n(14),i=n(0),a=n(29),c=n(50),u=n(51),l=n(69),s=n(61),f=n(27),d=n(9),p=n(8),h=n(46);function v(){v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=h.prototype=d.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var b,m="rc-cache",y=p.b,g=function(){var e=Object(i.useState)(null),t=Object(o.a)(e,2),n=t[0],r=t[1];return Object(i.useEffect)((function(){w().then((function(e){r(e)}))}),[]),n};function w(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).clientId;return b||(b=function(e){return x.apply(this,arguments)}({clientId:e}).then(function(){var e=Object(r.a)(v().mark((function e(t){var n,r,o,i,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={disableAutoBackup:!1,maxBackupSize:5e6,maxRDCohort:0},r=null===t||void 0===t?void 0:t.v4){e.next=4;break}return e.abrupt("return",n);case 4:return e.next=6,Object(a.b)();case 6:return o=e.sent,i=o.settings,e.next=10,i.get("disableAutoBackupRemotely");case 10:if(c=e.sent,!0!==r.disableAutoBackup){e.next=26;break}if(n.disableAutoBackup=!0,c){e.next=16;break}return e.next=16,i.set("disableAutoBackupRemotely",!0);case 16:return Object(h.b)(r.maxBackupSize)&&r.maxBackupSize>0&&(n.maxBackupSize=r.maxBackupSize),e.prev=17,e.next=20,Object(l.c)(void 0,{minSize:n.maxBackupSize});case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(17);case 24:e.next=31;break;case 26:if(!1!==r.disableAutoBackup){e.next=31;break}if(n.disableAutoBackup=!1,!c){e.next=31;break}return e.next=31,i.set("disableAutoBackupRemotely",!1);case 31:return Object(h.b)(r.maxRDCohort)&&r.maxRDCohort>0&&(n.maxRDCohort=r.maxRDCohort),e.abrupt("return",n);case 33:case"end":return e.stop()}}),e,null,[[17,22]])})));return function(t){return e.apply(this,arguments)}}()).finally((function(){b=void 0})),b)}function x(){return(x=Object(r.a)(v().mark((function e(t){var n,r,o,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.clientId){e.next=7;break}return e.next=4,Object(f.a)(m);case 4:if(!((null===(o=e.sent)||void 0===o||null===(r=o.config)||void 0===r?void 0:r.v4)&&o.timestamp&&Object(p.m)()-o.timestamp=0&&e.splice(n,1),n>=0}var B={};function H(e){var t,n,r,o;if(1===arguments.length){if(u(e))return e.slice();if(this===B&&"string"===typeof e)return[e];if(o=F(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"===typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var U="undefined"!==typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},W=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],q=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(W),G={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function V(e,t){this.name=e,this.message=t}function K(e,t){return e+". Errors: "+Object.keys(t).map((function(e){return t[e].toString()})).filter((function(e,t,n){return n.indexOf(e)===t})).join("\n")}function $(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=K(e,t)}function Y(e,t){this.name="BulkError",this.failures=Object.keys(t).map((function(e){return t[e]})),this.failuresByPos=t,this.message=K(e,this.failures)}b(V).from(Error).extend({toString:function(){return this.name+": "+this.message}}),b($).from(V),b(Y).from(V);var Q=q.reduce((function(e,t){return e[t]=t+"Error",e}),{}),X=V,Z=q.reduce((function(e,t){var n=t+"Error";function r(e,r){this.name=n,e?"string"===typeof e?(this.message="".concat(e).concat(r?"\n "+r:""),this.inner=r||null):"object"===typeof e&&(this.message="".concat(e.name," ").concat(e.message),this.inner=e):(this.message=G[t]||n,this.inner=null)}return b(r).from(X),e[t]=r,e}),{});Z.Syntax=SyntaxError,Z.Type=TypeError,Z.Range=RangeError;var J=W.reduce((function(e,t){return e[t+"Error"]=Z[t],e}),{});var ee=q.reduce((function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=Z[t]),e}),{});function te(){}function ne(e){return e}function re(e,t){return null==e||e===ne?t:function(n){return t(e(n))}}function oe(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ie(e,t){return e===te?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?oe(r,this.onsuccess):r),o&&(this.onerror=this.onerror?oe(o,this.onerror):o),void 0!==i?i:n}}function ae(e,t){return e===te?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?oe(n,this.onsuccess):n),r&&(this.onerror=this.onerror?oe(r,this.onerror):r)}}function ce(e,t){return e===te?t:function(n){var r=e.apply(this,arguments);l(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?oe(o,this.onsuccess):o),i&&(this.onerror=this.onerror?oe(i,this.onerror):i),void 0===r?void 0===a?void 0:a:l(r,a)}}function ue(e,t){return e===te?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function le(e,t){return e===te?t:function(){var n=e.apply(this,arguments);if(n&&"function"===typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}ee.ModifyError=$,ee.DexieError=V,ee.BulkError=Y;var se="undefined"!==typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function fe(e,t){se=e}var de={},pe=100,he="undefined"===typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"===typeof crypto||!crypto.subtle)return[e,s(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,s(t),e]}(),ve=he[0],be=he[1],me=he[2],ye=be&&be.then,ge=ve&&ve.constructor,we=!!me;var xe=function(e,t){Ie.push([e,t]),je&&(queueMicrotask(Be),je=!1)},Oe=!0,je=!0,ke=[],Se=[],Ee=ne,Ce={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:te,pgp:!1,env:{},finalize:te},Te=Ce,Ie=[],Pe=0,Le=[];function _e(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=Te;if("function"!==typeof e){if(e!==de)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ae(this,this._value))}this._state=null,this._value=null,++t.ref,Me(this,e)}var Re={get:function(){var e=Te,t=Qe;function n(n,r){var o=this,i=!e.global&&(e!==Te||t!==Qe),a=i&&!et(),c=new _e((function(t,c){Fe(o,new Ne(ct(n,e,i,a),ct(r,e,i,a),t,c,e))}));return this._consoleTask&&(c._consoleTask=this._consoleTask),c}return n.prototype=de,n},set:function(e){v(this,"then",e&&e.prototype===de?Re:{get:function(){return e},set:Re.set})}};function Ne(e,t,n,r,o){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function Me(e,t){try{t((function(t){if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&He();t&&"function"===typeof t.then?Me(e,(function(e,n){t instanceof _e?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,De(e)),n&&Ue()}}),Ae.bind(null,e))}catch(n){Ae(e,n)}}function Ae(e,t){if(Se.push(t),null===e._state){var n=e._lib&&He();t=Ee(t),e._state=!1,e._value=t,function(e){ke.some((function(t){return t._value===e._value}))||ke.push(e)}(e),De(e),n&&Ue()}}function De(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n0;)for(e=Ie,Ie=[],n=e.length,t=0;t0);Oe=!0,je=!0}function We(){var e=ke;ke=[],e.forEach((function(e){e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Le.slice(0),n=t.length;n;)t[--n]()}function qe(e){return new _e(de,!1,e)}function Ge(e,t){var n=Te;return function(){var r=He(),o=Te;try{return ot(n,!0),e.apply(this,arguments)}catch(i){t&&t(i)}finally{ot(o,!1),r&&Ue()}}}p(_e.prototype,{then:Re,_then:function(e,t){Fe(this,new Ne(null,null,e,t,Te))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"===typeof t?this.then(null,(function(e){return e instanceof t?n(e):qe(e)})):this.then(null,(function(e){return e&&e.name===t?n(e):qe(e)}))},finally:function(e){return this.then((function(t){return _e.resolve(e()).then((function(){return t}))}),(function(t){return _e.resolve(e()).then((function(){return qe(t)}))}))},timeout:function(e,t){var n=this;return e<1/0?new _e((function(r,o){var i=setTimeout((function(){return o(new Z.Timeout(t))}),e);n.then(r,o).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!==typeof Symbol&&Symbol.toStringTag&&v(_e.prototype,Symbol.toStringTag,"Dexie.Promise"),Ce.env=it(),p(_e,{all:function(){var e=H.apply(null,arguments).map(tt);return new _e((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((function(o,i){return _e.resolve(o).then((function(n){e[i]=n,--r||t(e)}),n)}))}))},resolve:function(e){return e instanceof _e?e:e&&"function"===typeof e.then?new _e((function(t,n){e.then(t,n)})):new _e(de,!0,e)},reject:qe,race:function(){var e=H.apply(null,arguments).map(tt);return new _e((function(t,n){e.map((function(e){return _e.resolve(e).then(t,n)}))}))},PSD:{get:function(){return Te},set:function(e){return Te=e}},totalEchoes:{get:function(){return Qe}},newPSD:Ze,usePSD:at,scheduler:{get:function(){return xe},set:function(e){xe=e}},rejectionMapper:{get:function(){return Ee},set:function(e){Ee=e}},follow:function(e,t){return new _e((function(n,r){return Ze((function(t,n){var r=Te;r.unhandleds=[],r.onunhandled=n,r.finalize=oe((function(){var e=this;!function(e){function t(){e(),Le.splice(Le.indexOf(t),1)}Le.push(t),++Pe,xe((function(){0===--Pe&&We()}),[])}((function(){0===e.unhandleds.length?t():n(e.unhandleds[0])}))}),r.finalize),e()}),t,n,r)}))}}),ge&&(ge.allSettled&&v(_e,"allSettled",(function(){var e=H.apply(null,arguments).map(tt);return new _e((function(t){0===e.length&&t([]);var n=e.length,r=new Array(n);e.forEach((function(e,o){return _e.resolve(e).then((function(e){return r[o]={status:"fulfilled",value:e}}),(function(e){return r[o]={status:"rejected",reason:e}})).then((function(){return--n||t(r)}))}))}))})),ge.any&&"undefined"!==typeof AggregateError&&v(_e,"any",(function(){var e=H.apply(null,arguments).map(tt);return new _e((function(t,n){0===e.length&&n(new AggregateError([]));var r=e.length,o=new Array(r);e.forEach((function(e,i){return _e.resolve(e).then((function(e){return t(e)}),(function(e){o[i]=e,--r||n(new AggregateError(o))}))}))}))})),ge.withResolvers&&(_e.withResolvers=ge.withResolvers));var Ve={awaits:0,echoes:0,id:0},Ke=0,$e=[],Ye=0,Qe=0,Xe=0;function Ze(e,t,n,r){var o=Te,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++Xe,Ce.env,i.env=we?{Promise:_e,PromiseProp:{value:_e,configurable:!0,writable:!0},all:_e.all,race:_e.race,allSettled:_e.allSettled,any:_e.any,resolve:_e.resolve,reject:_e.reject}:{},t&&l(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=at(i,e,n,r);return 0===i.ref&&i.finalize(),a}function Je(){return Ve.id||(Ve.id=++Ke),++Ve.awaits,Ve.echoes+=pe,Ve.id}function et(){return!!Ve.awaits&&(0===--Ve.awaits&&(Ve.id=0),Ve.echoes=Ve.awaits*pe,!0)}function tt(e){return Ve.echoes&&e&&e.constructor===ge?(Je(),e.then((function(e){return et(),e}),(function(e){return et(),lt(e)}))):e}function nt(e){++Qe,Ve.echoes&&0!==--Ve.echoes||(Ve.echoes=Ve.awaits=Ve.id=0),$e.push(Te),ot(e,!0)}function rt(){var e=$e[$e.length-1];$e.pop(),ot(e,!1)}function ot(e,t){var n=Te;if((t?!Ve.echoes||Ye++&&e===Te:!Ye||--Ye&&e===Te)||queueMicrotask(t?nt.bind(null,e):rt),e!==Te&&(Te=e,n===Ce&&(Ce.env=it()),we)){var r=Ce.env.Promise,o=e.env;(n.global||e.global)&&(Object.defineProperty(a,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}}function it(){var e=a.Promise;return we?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function at(e,t,n,r,o){var i=Te;try{return ot(e,!0),t(n,r,o)}finally{ot(i,!1)}}function ct(e,t,n,r){return"function"!==typeof e?e:function(){var o=Te;n&&Je(),ot(t,!0);try{return e.apply(this,arguments)}finally{ot(o,!1),r&&queueMicrotask(et)}}}function ut(e){Promise===ge&&0===Ve.echoes?0===Ye?e():enqueueNativeMicroTask(e):setTimeout(e,0)}-1===(""+ye).indexOf("[native code]")&&(Je=et=te);var lt=_e.reject;function st(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Te.letThrough||e._vip)){var o=e._createTransaction(t,n,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===Q.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e.close({disableAutoOpen:!1}),e.open().then((function(){return st(e,t,n,r)}))):lt(i)}return o._promise(t,(function(e,t){return Ze((function(){return Te.trans=o,r(e,t,o)}))})).then((function(e){if("readwrite"===t)try{o.idbtrans.commit()}catch(kn){}return"readonly"===t?e:o._completion.then((function(){return e}))}))}if(e._state.openComplete)return lt(new Z.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._state.autoOpen)return lt(new Z.DatabaseClosed);e.open().catch(te)}return e._state.dbReadyPromise.then((function(){return st(e,t,n,r)}))}var ft="4.0.11",dt=String.fromCharCode(65535),pt=-1/0,ht="Invalid key provided. Keys must be of type string, number, Date or Array.",vt="String expected.",bt=[],mt="__dbnames",yt="readonly",gt="readwrite";function wt(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var xt={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Ot(e){return"string"!==typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&delete(t=R(t))[e],t}}function jt(){throw Z.Type()}function kt(e,t){try{var n=St(e),r=St(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e=0}))){for(var n=0;n0){var r=n.valueMapper,o=Rt(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:o,range:n.range}}).then((function(e){var t=e.result;return r?t.map(r):t}))}var i=[];return Mt(n,(function(e){return i.push(e)}),e,n.table.core).then((function(){return i}))}),e)},e.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,Pt(t)?_t(t,(function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n((function(){e.advance(t),t=0})),!1))}})):_t(t,(function(){var t=e;return function(){return--t<0}}))),this},e.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),_t(this._ctx,(function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this},e.prototype.until=function(e,t){return Lt(this._ctx,(function(n,r,o){return!e(n.value)||(r(o),t)})),this},e.prototype.first=function(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)},e.prototype.last=function(e){return this.reverse().first(e)},e.prototype.filter=function(e){var t,n;return Lt(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=wt(t.isMatch,n),this},e.prototype.and=function(e){return this.filter(e)},e.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},e.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))},e.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},e.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))},e.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)},e.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&Pt(t,!0)&&t.limit>0)return this._read((function(e){var n=Rt(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((function(e){return e.result})).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)},e.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},e.prototype.firstKey=function(e){return this.limit(1).keys((function(e){return e[0]})).then(e)},e.prototype.lastKey=function(e){return this.reverse().firstKey(e)},e.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Lt(this._ctx,(function(e){var t=e.primaryKey.toString(),r=d(n,t);return n[t]=!0,!r})),this},e.prototype.modify=function(e){var t=this,n=this._ctx;return this._write((function(r){var o;if("function"===typeof e)o=e;else{var i=c(e),a=i.length;o=function(t){for(var n=!1,r=0;r0&&u.mutate({trans:r,type:"add",values:p}).then((function(e){for(var t in e.failures)b.splice(parseInt(t),1);m(p.length,e)}))).then((function(){return(h.length>0||i&&"object"===typeof e)&&u.mutate({trans:r,type:"put",keys:v,values:h,criteria:i,changeSpec:"function"!==typeof e&&e,isAdditionalChunk:a>0}).then((function(e){return m(h.length,e)}))})).then((function(){return(b.length>0||i&&e===zt)&&u.mutate({trans:r,type:"delete",keys:b,criteria:i,isAdditionalChunk:a>0}).then((function(e){return m(b.length,e)}))})).then((function(){return t.length>a+c&&n(a+d)}))}))}(0).then((function(){if(h.length>0)throw new $("Error modifying one or more objects",h,v,b);return t.length}))}))}))},e.prototype.delete=function(){var e=this._ctx,t=e.range;return Pt(e)&&(e.isPrimKey||3===t.type)?this._write((function(n){var r=e.table.core.schema.primaryKey,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then((function(t){return e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((function(e){var n=e.failures;e.lastResult,e.results;var r=e.numFailures;if(r)throw new $("Could not delete some values",Object.keys(n).map((function(e){return n[e]})),t-r);return t-r}))}))})):this.modify(zt)},e}(),zt=function(e,t){return t.value=null};function Bt(e,t){return et?-1:e===t?0:1}function Ut(e,t,n){var r=e instanceof $t?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Wt(e){return new e.Collection(e,(function(){return Kt("")})).limit(0)}function qt(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),c=-1,u=0;u=0?e.substr(0,c)+t[c]+n.substr(c+1):null;o(e[u],l)<0&&(c=u)}return a0)&&(p=b)}return n(null!==p?function(){e.continue(p+s)}:r),!1})),p}function Vt(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Kt(e){return{type:1,lower:e,upper:e}}var $t=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Wt(this):new this.Collection(this,(function(){return Vt(e,t,!n,!r)}))}catch(o){return Ut(this,ht)}},e.prototype.equals=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Kt(e)}))},e.prototype.above=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Vt(e,void 0,!0)}))},e.prototype.aboveOrEqual=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Vt(e,void 0,!1)}))},e.prototype.below=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Vt(void 0,e,!1,!0)}))},e.prototype.belowOrEqual=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Vt(void 0,e)}))},e.prototype.startsWith=function(e){return"string"!==typeof e?Ut(this,vt):this.between(e,e+dt,!0,!0)},e.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):Gt(this,(function(e,t){return 0===e.indexOf(t[0])}),[e],dt)},e.prototype.equalsIgnoreCase=function(e){return Gt(this,(function(e,t){return e===t[0]}),[e],"")},e.prototype.anyOfIgnoreCase=function(){var e=H.apply(B,arguments);return 0===e.length?Wt(this):Gt(this,(function(e,t){return-1!==t.indexOf(e)}),e,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var e=H.apply(B,arguments);return 0===e.length?Wt(this):Gt(this,(function(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}),e,dt)},e.prototype.anyOf=function(){var e=this,t=H.apply(B,arguments),n=this._cmp;try{t.sort(n)}catch(i){return Ut(this,ht)}if(0===t.length)return Wt(this);var r=new this.Collection(this,(function(){return Vt(t[0],t[t.length-1])}));r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var o=0;return r._addAlgorithm((function(e,r,i){for(var a=e.key;n(a,t[o])>0;)if(++o===t.length)return r(i),!1;return 0===n(a,t[o])||(r((function(){e.continue(t[o])})),!1)})),r},e.prototype.notEqual=function(e){return this.inAnyRange([[pt,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var e=H.apply(B,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(n){return Ut(this,ht)}var t=e.reduce((function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[pt,t]]}),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,o=this._ascending,i=this._descending,a=this._min,c=this._max;if(0===e.length)return Wt(this);if(!e.every((function(e){return void 0!==e[0]&&void 0!==e[1]&&o(e[0],e[1])<=0})))return Ut(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Z.InvalidArgument);var u=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;var s,f=o;function d(e,t){return f(e[0],t[0])}try{s=e.reduce((function(e,t){for(var n=0,o=e.length;n0){i[0]=a(i[0],t[0]),i[1]=c(i[1],t[1]);break}}return n===o&&e.push(t),e}),[]),s.sort(d)}catch(y){return Ut(this,ht)}var p=0,h=l?function(e){return o(e,s[p][1])>0}:function(e){return o(e,s[p][1])>=0},v=u?function(e){return i(e,s[p][0])>0}:function(e){return i(e,s[p][0])>=0};var b=h,m=new this.Collection(this,(function(){return Vt(s[0][0],s[s.length-1][1],!u,!l)}));return m._ondirectionchange=function(e){"next"===e?(b=h,f=o):(b=v,f=i),s.sort(d)},m._addAlgorithm((function(e,t,r){for(var i=e.key;b(i);)if(++p===s.length)return t(r),!1;return!!function(e){return!h(e)&&!v(e)}(i)||(0===n._cmp(i,s[p][1])||0===n._cmp(i,s[p][0])||t((function(){f===o?e.continue(s[p][0]):e.continue(s[p][1])})),!1)})),m},e.prototype.startsWithAnyOf=function(){var e=H.apply(B,arguments);return e.every((function(e){return"string"===typeof e}))?0===e.length?Wt(this):this.inAnyRange(e.map((function(e){return[e,e+dt]}))):Ut(this,"startsWithAnyOf() only works with strings")},e}();function Yt(e){return Ge((function(t){return Qt(t),e(t.target.error),!1}))}function Qt(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Xt="storagemutated",Zt="x-storagemutated-1",Jt=Tt(null,Xt),en=function(){function e(){}return e.prototype._lock=function(){return O(!Te.global),++this._reculock,1!==this._reculock||Te.global||(Te.lockOwnerFor=this),this},e.prototype._unlock=function(){if(O(!Te.global),0===--this._reculock)for(Te.global||(Te.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{at(e[1],e[0])}catch(t){}}return this},e.prototype._locked=function(){return this._reculock&&Te.lockOwnerFor!==this},e.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(O(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new Z.DatabaseClosed(r);case"MissingAPIError":throw new Z.MissingAPI(r.message,r);default:throw new Z.OpenFailed(r)}if(!this.active)throw new Z.TransactionInactive;return O(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Ge((function(n){Qt(n),t._reject(e.error)})),e.onabort=Ge((function(n){Qt(n),t.active&&t._reject(new Z.Abort(e.error)),t.active=!1,t.on("abort").fire(n)})),e.oncomplete=Ge((function(){t.active=!1,t._resolve(),"mutatedParts"in e&&Jt.storagemutated.fire(e.mutatedParts)})),this},e.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return lt(new Z.ReadOnly("Transaction is readonly"));if(!this.active)return lt(new Z.TransactionInactive);if(this._locked())return new _e((function(o,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(o,i)},Te])}));if(n)return Ze((function(){var e=new _e((function(e,n){r._lock();var o=t(e,n,r);o&&o.then&&o.then(e,n)}));return e.finally((function(){return r._unlock()})),e._lib=!0,e}));var o=new _e((function(e,n){var o=t(e,n,r);o&&o.then&&o.then(e,n)}));return o._lib=!0,o},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(e){var t=this._root(),n=_e.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return n}));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new _e((function(e,r){n.then((function(n){return t._waitingQueue.push(Ge(e.bind(null,n)))}),(function(e){return t._waitingQueue.push(Ge(r.bind(null,e)))})).finally((function(){t._waitingFor===o&&(t._waitingFor=null)}))}))},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Z.Abort))},e.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(d(t,e))return t[e];var n=this.schema[e];if(!n)throw new Z.NotFound("Table "+e+" not part of transaction");var r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r},e}();function tn(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+nn(t)}}function nn(e){return"string"===typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function rn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=n,o=function(e){return[e.name,e]},r.reduce((function(e,t,n){var r=o(t,n);return r&&(e[r[0]]=r[1]),e}),{}))};var r,o}var on=function(e){try{return e.only([[]]),on=function(){return[[]]},[[]]}catch(t){return on=function(){return dt},dt}};function an(e){return null==e?function(){}:"string"===typeof e?function(e){var t=e.split(".");return 1===t.length?function(t){return t[e]}:function(t){return k(t,e)}}(e):function(t){return k(t,e)}}function cn(e){return[].slice.call(e)}var un=0;function ln(e){return null==e?":id":"string"===typeof e?e:"[".concat(e.join("+"),"]")}function sn(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=e.lower,r=e.upper,o=e.lowerOpen,i=e.upperOpen;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!o):t.bound(n,r,!!o,!!i)}var o=function(e,t){var n=cn(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((function(e){return t.objectStore(e)})).map((function(e){var t=e.keyPath,n=e.autoIncrement,r=u(t),o=null==t,i={},a={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:an(t)},indexes:cn(e.indexNames).map((function(t){return e.index(t)})).map((function(e){var t=e.name,n=e.unique,r=e.multiEntry,o=e.keyPath,a={name:t,compound:u(o),keyPath:o,unique:n,multiEntry:r,extractKey:an(o)};return i[ln(o)]=a,a})),getIndexByKeyPath:function(e){return i[ln(e)]}};return i[":id"]=a.primaryKey,null!=t&&(i[ln(t)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),i=o.schema,a=o.hasGetAll,c=i.tables.map((function(e){return function(e){var t=e.name;return{name:t,schema:e,mutate:function(e){var n=e.trans,o=e.type,i=e.keys,a=e.values,c=e.range;return new Promise((function(e,u){e=Ge(e);var l=n.objectStore(t),s=null==l.keyPath,f="put"===o||"add"===o;if(!f&&"delete"!==o&&"deleteRange"!==o)throw new Error("Invalid operation type: "+o);var d,p=(i||a||{length:1}).length;if(i&&a&&i.length!==a.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return e({numFailures:0,failures:{},results:[],lastResult:void 0});var h=[],v=[],b=0,m=function(e){++b,Qt(e)};if("deleteRange"===o){if(4===c.type)return e({numFailures:b,failures:v,results:[],lastResult:void 0});3===c.type?h.push(d=l.clear()):h.push(d=l.delete(r(c)))}else{var y=f?s?[a,i]:[a,null]:[i,null],g=y[0],w=y[1];if(f)for(var x=0;x=t}));if(0===u.length)return _e.resolve();function l(){return o.length?_e.resolve(o.shift()(n.idbtrans)).then(l):_e.resolve()}return u.forEach((function(i){o.push((function(){var o=a,u=i._cfg.dbschema;On(e,o,r),On(e,u,r),a=e._dbSchema=u;var l=mn(o,u);l.add.forEach((function(e){yn(r,e[0],e[1].primKey,e[1].indexes)})),l.change.forEach((function(e){if(e.recreate)throw new Z.Upgrade("Not yet support for changing primary key");var t=r.objectStore(e.name);e.add.forEach((function(e){return wn(t,e)})),e.change.forEach((function(e){t.deleteIndex(e.name),wn(t,e)})),e.del.forEach((function(e){return t.deleteIndex(e)}))}));var s=i._cfg.contentUpgrade;if(s&&i._cfg.version>t){dn(e,r),n._memoizedTables={};var f=E(u);l.del.forEach((function(e){f[e]=o[e]})),hn(e,[e.Transaction.prototype]),pn(e,[e.Transaction.prototype],c(f),f),n.schema=f;var d,p=U(s);p&&Je();var h=_e.follow((function(){if((d=s(n))&&p){var e=et.bind(null,null);d.then(e,e)}}));return d&&"function"===typeof d.then?_e.resolve(d):h.then((function(){return d}))}})),o.push((function(t){!function(e,t){[].slice.call(t.db.objectStoreNames).forEach((function(n){return null==e[n]&&t.db.deleteObjectStore(n)}))}(i._cfg.dbschema,t),hn(e,[e.Transaction.prototype]),pn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})),o.push((function(t){e.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(e.idbdb.version/10)===i._cfg.version?(e.idbdb.deleteObjectStore("$meta"),delete e._dbSchema.$meta,e._storeNames=e._storeNames.filter((function(e){return"$meta"!==e}))):t.objectStore("$meta").put(i._cfg.version,"version"))}))})),l().then((function(){gn(a,r)}))}(e,t,i,n)})).catch(a);c(o).forEach((function(e){yn(n,e,o[e].primKey,o[e].indexes)})),dn(e,n),_e.follow((function(){return e.on.populate.fire(i)})).catch(a)}))}function mn(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var o=e[n],i=t[n];if(o){var a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!==""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto)a.recreate=!0,r.change.push(a);else{var c=o.idxByName,u=i.idxByName,l=void 0;for(l in c)u[l]||a.del.push(l);for(l in u){var s=c[l],f=u[l];s?s.src!==f.src&&a.change.push(f):a.add.push(f)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function yn(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(e){return wn(o,e)})),o}function gn(e,t){c(e).forEach((function(n){t.db.objectStoreNames.contains(n)||(se&&console.debug("Dexie: Creating missing table",n),yn(t,n,e[n].primKey,e[n].indexes))}))}function wn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function xn(e,t,n){var r={};return w(t.objectStoreNames,0).forEach((function(e){for(var t=n.objectStore(e),o=t.keyPath,i=tn(nn(o),o||"",!0,!1,!!t.autoIncrement,o&&"string"!==typeof o,!0),a=[],c=0;c1?n:t}:{d:0})};function _n(e,t,n){var r=kt(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Pn(e))return l(e,{from:t,to:n,d:1});var o=e.l,i=e.r;if(kt(n,e.from)<0)return o?_n(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Mn(e);if(kt(t,e.to)>0)return i?_n(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Mn(e);kt(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),kt(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var a=!e.r;o&&!e.l&&Rn(e,o),i&&a&&Rn(e,i)}}function Rn(e,t){Pn(t)||function e(t,n){var r=n.from,o=n.to,i=n.l,a=n.r;_n(t,r,o),i&&e(t,i),a&&e(t,a)}(e,t)}function Nn(e){var t=Pn(e)?null:{s:0,n:e};return{next:function(e){for(var n=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&kt(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||kt(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Mn(e){var t,n,r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){var a="r"===i?"l":"r",c=o({},e),u=e[i];e.from=u.from,e.to=u.to,e[i]=u[i],c[i]=u[a],e[a]=c,c.d=An(c)}e.d=An(e)}function An(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}function Dn(e,t){return c(t).forEach((function(n){e[n]?Rn(e[n],t[n]):e[n]=L(t[n])})),e}function Fn(e,t){return e.all||t.all||Object.keys(e).some((function(n){return t[n]&&function(e,t){var n=Nn(t),r=n.next();if(r.done)return!1;for(var o=r.value,i=Nn(e),a=i.next(o.from),c=a.value;!r.done&&!a.done;){if(kt(c.from,o.to)<=0&&kt(c.to,o.from)>=0)return!0;kt(o.from,c.from)<0?o=(r=n.next(c.from)).value:c=(a=i.next(o.from)).value}return!1}(t[n],e[n])}))}p(Ln.prototype,(kn={add:function(e){return Rn(this,e),this},addKey:function(e){return _n(this,e,e),this},addKeys:function(e){var t=this;return e.forEach((function(e){return _n(t,e,e)})),this},hasKey:function(e){var t=Nn(this).next(e).value;return t&&kt(t.from,e)<=0&&kt(t.to,e)>=0}},kn[D]=function(){return Nn(this)},kn));var zn={},Bn={},Hn=!1;function Un(e,t){Dn(Bn,e),Hn||(Hn=!0,setTimeout((function(){Hn=!1;var e=Bn;Bn={},Wn(e,!1)}),0))}function Wn(e,t){void 0===t&&(t=!1);var n=new Set;if(e.all)for(var r=0,o=Object.values(zn);rMath.pow(2,62)?0:r.oldVersion;s=a<1,e.idbdb=p.result,i&&function(e,t){gn(e._dbSchema,t),t.db.version%10!==0||t.objectStoreNames.contains("$meta")||t.db.createObjectStore("$meta").add(Math.ceil(t.db.version/10-1),"version");var n=xn(0,e.idbdb,t);On(e,e._dbSchema,t);for(var r=function(e){if(e.change.length||e.recreate)return console.warn("Unable to patch indexes of table ".concat(e.name," because it has changes on the type of index or primary key.")),{value:void 0};var n=t.objectStore(e.name);e.add.forEach((function(t){se&&console.debug("Dexie upgrade patch: Creating missing index ".concat(e.name,".").concat(t.src)),wn(n,t)}))},o=0,i=mn(n,e._dbSchema).change;o0)try{var h=a.transaction(1===(n=f).length?n[0]:n,"readonly");if(t.autoSchema)!function(e,t,n){e.verno=t.version/10;var r=e._dbSchema=xn(0,t,n);e._storeNames=w(t.objectStoreNames,0),pn(e,[e._allTables],c(r),r)}(e,a,h);else if(On(e,e._dbSchema,h),!function(e,t){var n=mn(xn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((function(e){return e.add.length||e.change.length})))}(e,h)&&!i)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),a.close(),o=a.version+1,i=!0,u(r());dn(e,h)}catch(v){}bt.push(e),a.onversionchange=Ge((function(n){t.vcFired=!0,e.on("versionchange").fire(n)})),a.onclose=Ge((function(t){e.on("close").fire(t)})),s&&function(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Cn(n)&&t!==mt&&En(n,r).put({name:t}).catch(te)}(e._deps,d),u()}),f)})).catch((function(e){switch(null===e||void 0===e?void 0:e.name){case"UnknownError":if(t.PR1398_maxLoop>0)return t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),r();break;case"VersionError":if(o>0)return o=0,r()}return _e.reject(e)}))}))]).then((function(){return a(),t.onReadyBeingFired=[],_e.resolve(Tn((function(){return e.on.ready.fire(e.vip)}))).then((function n(){if(t.onReadyBeingFired.length>0){var r=t.onReadyBeingFired.reduce(le,te);return t.onReadyBeingFired=[],_e.resolve(Tn((function(){return r(e.vip)}))).then(n)}}))})).finally((function(){t.openCanceller===r&&(t.onReadyBeingFired=null,t.isBeingOpened=!1)})).catch((function(n){t.dbOpenError=n;try{l&&l.abort()}catch(kn){}return r===t.openCanceller&&e._close(),lt(n)})).finally((function(){t.openComplete=!0,u()})).then((function(){if(s){var t={};e.tables.forEach((function(n){n.schema.indexes.forEach((function(r){r.name&&(t["idb://".concat(e.name,"/").concat(n.name,"/").concat(r.name)]=new Ln(-1/0,[[[]]]))})),t["idb://".concat(e.name,"/").concat(n.name,"/")]=t["idb://".concat(e.name,"/").concat(n.name,"/:dels")]=new Ln(-1/0,[[[]]])})),Jt(Xt).fire(t),Wn(t,!0)}return e}))}function Vn(e){var t=function(t){return e.next(t)},n=o(t),r=o((function(t){return e.throw(t)}));function o(e){return function(t){var o=e(t),i=o.value;return o.done?i:i&&"function"===typeof i.then?i.then(n,r):u(i)?Promise.all(i).then(n,r):n(i)}}return o(t)()}function Kn(e,t,n){var r=arguments.length;if(r<2)throw new Z.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];return n=o.pop(),[e,T(o),n]}function $n(e,t,n,r,o){return _e.resolve().then((function(){var i=Te.transless||Te,a=e._createTransaction(t,n,e._dbSchema,r);a.explicit=!0;var c={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),a.idbtrans._explicit=!0,e._state.PR1398_maxLoop=3}catch(f){return f.name===Q.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e.close({disableAutoOpen:!1}),e.open().then((function(){return $n(e,t,n,null,o)}))):lt(f)}var u,l=U(o);l&&Je();var s=_e.follow((function(){if(u=o.call(a,a))if(l){var e=et.bind(null,null);u.then(e,e)}else"function"===typeof u.next&&"function"===typeof u.throw&&(u=Vn(u))}),c);return(u&&"function"===typeof u.then?_e.resolve(u).then((function(e){return a.active?e:lt(new Z.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):s.then((function(){return u}))).then((function(e){return r&&a._resolve(),a._completion.then((function(){return e}))})).catch((function(e){return a._reject(e),lt(e)}))}))}function Yn(e,t,n){for(var r=u(e)?e.slice():[e],o=0;o0,f=o(o({},n),{name:s?"".concat(r,"(virtual-from:").concat(n.name,")"):n.name,lowLevelIndex:n,isVirtual:s,keyTail:t,keyLength:l,extractKey:an(e),unique:!s&&n.unique});(u.push(f),f.isPrimaryKey||a.push(f),l>1)&&c(2===l?e[0]:e.slice(0,l-1),t+1,n);return u.sort((function(e,t){return e.keyTail-t.keyTail})),f}var u=c(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[u];for(var l=0,s=r.indexes;l0?Promise.reject(n.failures[0]):r.length0:kt(e,t.lower)>=0)}(e,t)&&function(e,t){return void 0===t.upper||(t.upperOpen?kt(e,t.upper)<0:kt(e,t.upper)<=0)}(e,t)}function cr(e,t,n,r,o,i){if(!n||0===n.length)return e;var a=t.query.index,c=a.multiEntry,l=t.query.range,s=r.schema.primaryKey.extractKey,f=a.extractKey,d=(a.lowLevelIndex||a).extractKey,p=n.reduce((function(e,n){var r=e,o=[];if("add"===n.type||"put"===n.type)for(var i=new Ln,a=n.values.length-1;a>=0;--a){var d=n.values[a],p=s(d);if(!i.hasKey(p)){var h=f(d);(c&&u(h)?h.some((function(e){return ar(e,l)})):ar(h,l))&&(i.addKey(p),o.push(d))}}switch(n.type){case"add":var v=(new Ln).addKeys(t.values?e.map((function(e){return s(e)})):e);r=e.concat(t.values?o.filter((function(e){var t=s(e);return!v.hasKey(t)&&(v.addKey(t),!0)})):o.map((function(e){return s(e)})).filter((function(e){return!v.hasKey(e)&&(v.addKey(e),!0)})));break;case"put":var b=(new Ln).addKeys(n.values.map((function(e){return s(e)})));r=e.filter((function(e){return!b.hasKey(t.values?s(e):e)})).concat(t.values?o:o.map((function(e){return s(e)})));break;case"delete":var m=(new Ln).addKeys(n.keys);r=e.filter((function(e){return!m.hasKey(t.values?s(e):e)}));break;case"deleteRange":var y=n.range;r=e.filter((function(e){return!ar(s(e),y)}))}return r}),e);return p===e?e:(p.sort((function(e,t){return kt(d(e),d(t))||kt(s(e),s(t))})),t.limit&&t.limit<1/0&&(p.length>t.limit?p.length=t.limit:e.length===t.limit&&p.length=0}function sr(e,t,n,r){e.subscribers.add(n),r.addEventListener("abort",(function(){e.subscribers.delete(n),0===e.subscribers.size&&function(e,t){setTimeout((function(){0===e.subscribers.size&&z(t,e)}),3e3)}(e,t)}))}var fr={stack:"dbcore",level:0,name:"Cache",create:function(e){var t=e.schema.name,n=o(o({},e),{transaction:function(n,r,o){var i=e.transaction(n,r,o);if("readwrite"===r){var a=new AbortController,c=a.signal,u=function(o){return function(){if(a.abort(),"readwrite"===r){for(var c=new Set,u=0,l=n;u0){f.optimisticOps=f.optimisticOps.filter((function(e){return e.trans!==i}));for(var y=0,g=Object.values(f.queries.query);y=50||Zn(i,e).some((function(e){return null==e})))?(c.optimisticOps.push(e),e.mutatedParts&&Un(e.mutatedParts),u.then((function(t){if(t.numFailures>0){z(c.optimisticOps,e);var n=ir(0,e,t);n&&c.optimisticOps.push(n),e.mutatedParts&&Un(e.mutatedParts)}})),u.catch((function(){z(c.optimisticOps,e),e.mutatedParts&&Un(e.mutatedParts)}))):u.then((function(t){var n=o(o({},e),{values:e.values.map((function(e,n){var r;if(t.failures[n])return e;var a=(null===(r=i.keyPath)||void 0===r?void 0:r.includes("."))?R(e):o({},e);return S(a,i.keyPath,t.results[n]),a}))}),r=ir(0,n,t);c.optimisticOps.push(r),queueMicrotask((function(){return e.mutatedParts&&Un(e.mutatedParts)}))})),u},query:function(e){var o;if(!nr(Te,r)||!rr("query",e))return r.query(e);var i="immutable"===(null===(o=Te.trans)||void 0===o?void 0:o.db._options.cache),a=Te,c=a.requery,u=a.signal,l=function(e,t,n,r){var o=zn["idb://".concat(e,"/").concat(t)];if(!o)return[];var i=o.queries[n];if(!i)return[null,!1,o,null];var a=i[(r.query?r.query.index.name:null)||""];if(!a)return[null,!1,o,null];switch(n){case"query":var c=a.find((function(e){return e.req.limit===r.limit&&e.req.values===r.values&&ur(e.req.query.range,r.query.range)}));return c?[c,!0,o,a]:[a.find((function(e){return("limit"in e.req?e.req.limit:1/0)>=r.limit&&(!r.values||e.req.values)&&lr(e.req.query.range,r.query.range)})),!1,o,a];case"count":var u=a.find((function(e){return ur(e.req.query.range,r.query.range)}));return[u,!!u,o,a]}}(t,n,"query",e),s=l[0],f=l[1],d=l[2],p=l[3];if(s&&f)s.obsSet=e.obsSet;else{var h=r.query(e).then((function(e){var t=e.result;if(s&&(s.res=t),i){for(var n=0,r=t.length;n0?e:t},this._min=function(e,t){return kt(e,t)<0?e:t},this._IDBKeyRange=e._deps.IDBKeyRange,!this._IDBKeyRange)throw new Z.MissingAPI}))}(this),this.on("versionchange",(function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(r.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(r.name,"'. Closing db now to resume the delete request.")),r.close({disableAutoOpen:!1})})),this.on("blocked",(function(e){!e.newVersion||e.newVersion=0&&bt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(n){}this.idbdb=null}e.isBeingOpened||(e.dbReadyPromise=new _e((function(t){e.dbReadyResolve=t})),e.openCanceller=new _e((function(t,n){e.cancelOpen=n})))},e.prototype.close=function(e){var t=(void 0===e?{disableAutoOpen:!0}:e).disableAutoOpen,n=this._state;t?(n.isBeingOpened&&n.cancelOpen(new Z.DatabaseClosed),this._close(),n.autoOpen=!1,n.dbOpenError=new Z.DatabaseClosed):(this._close(),n.autoOpen=this._options.autoOpen||n.isBeingOpened,n.openComplete=!1,n.dbOpenError=null)},e.prototype.delete=function(e){var t=this;void 0===e&&(e={disableAutoOpen:!0});var n=arguments.length>0&&"object"!==typeof arguments[0],r=this._state;return new _e((function(o,i){var a=function(){t.close(e);var n=t._deps.indexedDB.deleteDatabase(t.name);n.onsuccess=Ge((function(){!function(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Cn(n)&&t!==mt&&En(n,r).delete(t).catch(te)}(t._deps,t.name),o()})),n.onerror=Yt(i),n.onblocked=t._fireOnBlocked};if(n)throw new Z.InvalidArgument("Invalid closeOptions argument to db.delete()");r.isBeingOpened?r.dbReadyPromise.then(a):a()}))},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return c(this._allTables).map((function(t){return e._allTables[t]}))},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var e=Kn.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var r=this,o=Te.trans;o&&o.db===this&&-1===e.indexOf("!")||(o=null);var i,a,c=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(a=t.map((function(e){var t=e instanceof r.Table?e.name:e;if("string"!==typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||e===yt)i=yt;else{if("rw"!=e&&e!=gt)throw new Z.InvalidArgument("Invalid transaction mode: "+e);i=gt}if(o){if(o.mode===yt&&i===gt){if(!c)throw new Z.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&a.forEach((function(e){if(o&&-1===o.storeNames.indexOf(e)){if(!c)throw new Z.SubTransaction("Table "+e+" not included in parent transaction.");o=null}})),c&&o&&!o.active&&(o=null)}}catch(l){return o?o._promise(null,(function(e,t){t(l)})):lt(l)}var u=$n.bind(null,this,i,a,o,n);return o?o._promise(i,u,"lock"):Te.trans?at(Te.transless,(function(){return r._whenReady(u)})):this._whenReady(u)},e.prototype.table=function(e){if(!d(this._allTables,e))throw new Z.InvalidTable("Table ".concat(e," does not exist"));return this._allTables[e]},e}(),vr="undefined"!==typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",br=function(){function e(e){this._subscribe=e}return e.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!==typeof e?e:{next:e,error:t,complete:n})},e.prototype[vr]=function(){return this},e}();try{pr={indexedDB:a.indexedDB||a.mozIndexedDB||a.webkitIndexedDB||a.msIndexedDB,IDBKeyRange:a.IDBKeyRange||a.webkitIDBKeyRange}}catch(Or){pr={indexedDB:null,IDBKeyRange:null}}var mr=hr;function yr(e){var t=wr;try{wr=!0,Jt.storagemutated.fire(e),Wn(e,!0)}finally{wr=t}}p(mr,o(o({},ee),{delete:function(e){return new mr(e,{addons:[]}).delete()},exists:function(e){return new mr(e,{addons:[]}).open().then((function(e){return e.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(e){try{return function(e){var t=e.indexedDB,n=e.IDBKeyRange;return Cn(t)?Promise.resolve(t.databases()).then((function(e){return e.map((function(e){return e.name})).filter((function(e){return e!==mt}))})):En(t,n).toCollection().primaryKeys()}(mr.dependencies).then(e)}catch(kn){return lt(new Z.MissingAPI)}},defineClass:function(){return function(e){l(this,e)}},ignoreTransaction:function(e){return Te.trans?at(Te.transless,e):e()},vip:Tn,async:function(e){return function(){try{var t=Vn(e.apply(this,arguments));return t&&"function"===typeof t.then?t:_e.resolve(t)}catch(Or){return lt(Or)}}},spawn:function(e,t,n){try{var r=Vn(e.apply(n,t||[]));return r&&"function"===typeof r.then?r:_e.resolve(r)}catch(Or){return lt(Or)}},currentTransaction:{get:function(){return Te.trans||null}},waitFor:function(e,t){var n=_e.resolve("function"===typeof e?mr.ignoreTransaction(e):e).timeout(t||6e4);return Te.trans?Te.trans.waitFor(n):n},Promise:_e,debug:{get:function(){return se},set:function(e){fe(e)}},derive:b,extend:l,props:p,override:x,Events:Tt,on:Jt,liveQuery:function(e){var t,n=!1,r=new br((function(r){var o=U(e);var i,a=!1,c={},u={},l={get closed(){return a},unsubscribe:function(){a||(a=!0,i&&i.abort(),s&&Jt.storagemutated.unsubscribe(p))}};r.start&&r.start(l);var s=!1,f=function(){return ut(h)};var p=function(e){Dn(c,e),Fn(u,c)&&f()},h=function(){if(!a&&pr.indexedDB){c={};var l={};i&&i.abort(),i=new AbortController;var h={subscr:l,signal:i.signal,requery:f,querier:e,trans:null},v=function(t){var n=He();try{o&&Je();var r=Ze(e,t);return o&&(r=r.finally(et)),r}finally{n&&Ue()}}(h);Promise.resolve(v).then((function(e){n=!0,t=e,a||h.signal.aborted||(c={},function(e){for(var t in e)if(d(e,t))return!1;return!0}(u=l)||s||(Jt(Xt,p),s=!0),ut((function(){return!a&&r.next&&r.next(e)})))}),(function(e){n=!1,["DatabaseClosedError","AbortError"].includes(null===e||void 0===e?void 0:e.name)||a||ut((function(){a||r.error&&r.error(e)}))}))}};return setTimeout(f,0),l}));return r.hasValue=function(){return n},r.getValue=function(){return t},r},extendObservabilitySet:Dn,getByKeyPath:k,setByKeyPath:S,delByKeyPath:function(e,t){"string"===typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,(function(t){S(e,t,void 0)}))},shallowClone:E,deepClone:R,getObjectDiff:Xn,cmp:kt,asap:j,minKey:pt,addons:[],connections:bt,errnames:Q,dependencies:pr,cache:zn,semVer:ft,version:ft.split(".").map((function(e){return parseInt(e)})).reduce((function(e,t,n){return e+t/Math.pow(10,2*n)}))})),mr.maxKey=on(mr.dependencies.IDBKeyRange),"undefined"!==typeof dispatchEvent&&"undefined"!==typeof addEventListener&&(Jt(Xt,(function(e){var t;wr||(t=new CustomEvent(Zt,{detail:e}),wr=!0,dispatchEvent(t),wr=!1)})),addEventListener(Zt,(function(e){var t=e.detail;wr||yr(t)})));var gr,wr=!1,xr=function(){};"undefined"!==typeof BroadcastChannel&&((xr=function(){(gr=new BroadcastChannel(Zt)).onmessage=function(e){return e.data&&yr(e.data)}})(),"function"===typeof gr.unref&&gr.unref(),Jt(Xt,(function(e){wr||gr.postMessage(e)}))),"undefined"!==typeof addEventListener&&(addEventListener("pagehide",(function(e){if(!hr.disableBfCache&&e.persisted){se&&console.debug("Dexie: handling persisted pagehide"),null===gr||void 0===gr||gr.close();for(var t=0,n=bt;t0?"in "+o:o+" ago":o};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(e,t,n,r){return c[e]};function l(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var s={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function f(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,c=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],o=e.match(d.parsePattern);if(!o)return null;var i=d.valueCallback?d.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},h={code:"en-US",formatDistance:o,formatLong:a,formatRelative:u,localize:s,match:p,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=h},function(e,t,n){"use strict";var r="NOT_FOUND";var o=function(e,t){return e===t};function i(e,t){var n="object"===typeof t?t:{equalityCheck:t},i=n.equalityCheck,a=void 0===i?o:i,c=n.maxSize,u=void 0===c?1:c,l=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(u,s);function d(){var t=f.get(arguments);if(t===r){if(t=e.apply(null,arguments),l){var n=f.getEntries().find((function(e){return l(e.value,t)}));n&&(t=n.value)}f.put(arguments,t)}return t}return d.clearCache=function(){return f.clear()},d}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l=5*c.f,s=i()((function(){Object(a.i)("userActive",Object(c.n)())}),5e3,{leading:!0,trailing:!1}),f=function(){var e=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)("userActive");case 2:return t=e.sent,e.abrupt("return",Object(c.k)(t));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)("activeSnapshot");case 2:return t=e.sent,e.abrupt("return",Object(c.k)(null===t||void 0===t?void 0:t.timestamp));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=Object(r.a)(u().mark((function e(){var t,n,r,o,i,a,s=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(s.length>0&&void 0!==s[0]?s[0]:{}).debug,e.next=3,f();case 3:return n=e.sent,e.next=6,d();case 6:if(r=e.sent,n||r){e.next=10;break}return t&&console.log("idle status unknown: no user or browser activity recorded"),e.abrupt("return",void 0);case 10:return o=n&&r?Math.max(+n,+r):n?+n:+r,i=Object(c.m)()-l,a=o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l={experiments:{},clientId:void 0,clientCreated:void 0,view:"single-line",defaultCollectionColor:"none",shareUsageStats:!0,rateDonateViewed:null,enableAutoBackup:!0,disableAutoBackupRemotely:!1,appTip_export:{text:"Use Export to transfer collections to other apps.\nTo save both collections and history, use Backup."},appTip_itemMove:{text:"mac"===a.a?"Use Option+\u2191/Option+\u2193 to move a selected link or folder up/down.":"Use Alt+\u2191/Alt+\u2193 to move a selected link or folder up/down."},exportScope:"all-collections",exportFormat:"json",unitAddTextAreaHeight:120,importTextAreaHeight:120,enableOpenOptimizations:!1,showTabCountsBadge:!1,enableSingleClickRemove:!1,alwaysShowUnitCounts:!1,showWelcome:!1,clientTitle:"",enabledCopyActions:["title","titleAndUrl","markdown","csv","json","html"],currentWindowFirst:!0,bypassConfirmCollectionDelete:!1,bypassConfirmEventDelete:!1,bypassConfirmClientItemClose:!1,bypassConfirmCollectionItemDelete:!1,bypassConfirmEventItemDelete:!1,bypassConfirmClientItemOpen:!1,bypassConfirmCollectionItemMove:!1,bypassConfirmSort:!1,bypassConfirmUnify:!1,bypassConfirmReplace:!1,ignoreNxsTabs:!1,ignoreNewTabs:!1,ignorePinnedTabs:!1,ignoreBrowserFeatureTabs:!1,desiredTheme:"default",historyIsOpen:!1,scheduledSnapshotCycle:c.c,scheduledSnapshotRemoveOlderThan:10*c.i,scheduledSnapshotKeepAtMost:500,searchResultsShowUnitsOnly:!1,suppressMacShortcutBugNotification:!1,askForNameWhenSavingCollection:!0,autoNameCollections:!0,showAllItemMatches:!1,dummyGlobal:"dummyGlobal"},s=["dummyGlobal"];function f(e){return s.includes(e)}function d(e){var t={all:function(){return n.apply(this,arguments)},get:function(e){return a.apply(this,arguments)},set:function(e,t){return c.apply(this,arguments)}};return t;function n(){return(n=Object(o.a)(u().mark((function t(){var n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.fetchAllSettings();case 3:return n=t.sent,t.abrupt("return",n.filter((function(e){return e.id in l})).map((function(e){return p(e.id,e.value)?e:Object(r.a)(Object(r.a)({},e),{},{value:l[e.id]})})).map((function(e){return Object(r.a)(Object(r.a)({},e),{},{global:f(e.id)})})));case 7:t.prev=7,t.t0=t.catch(0),Object(i.e)(t.t0,{prefix:"Failed to fetch all settings"});case 10:return t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function a(){return(a=Object(o.a)(u().mark((function t(n){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!f(n)){t.next=7;break}return t.next=4,e.fetchGlobalSetting(n);case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,e.fetchClientSetting(n);case 9:t.t0=t.sent;case 10:if(r=t.t0,!p(n,r)){t.next=13;break}return t.abrupt("return",r);case 13:t.next=18;break;case 15:t.prev=15,t.t1=t.catch(0),Object(i.e)(t.t1,{prefix:"Failed to fetch setting ".concat(n)});case 18:return t.abrupt("return",l[n]);case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))).apply(this,arguments)}function c(){return(c=Object(o.a)(u().mark((function t(n,r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!f(n)){t.next=3;break}return t.abrupt("return",e.saveGlobalSetting({id:n,value:r}));case 3:return t.next=5,e.saveClientSetting({id:n,value:r});case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),Object(i.e)(t.t0,{prefix:"Failed to save setting ".concat(n)});case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}}function p(e,t){return void 0!==t&&!!("scheduledSnapshotRemoveOlderThan"!==e&&"scheduledSnapshotKeepAtMost"!==e||t)}},function(e){e.exports=JSON.parse('{"brave":{"browsers":["brave"],"appStores":["googleChromeWebStore"],"urls":{"bookmarks":["brave://bookmarks"],"downloads":["brave://downloads"],"extensions":["brave://extensions"],"history":["brave://history"],"newtab":[],"settings":["brave://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension"],"feature":["brave"]}},"chrome":{"browsers":["chrome","chromium"],"appStores":["googleChromeWebStore"],"urls":{"bookmarks":["chrome://bookmarks"],"downloads":["chrome://downloads"],"extensions":["chrome://extensions","chrome://chrome/extensions","chrome://settings/extensions"],"history":["chrome://history","chrome://chrome/history"],"newtab":["chrome://newtab"],"settings":["chrome://settings","chrome://chrome/settings"]},"schemes":{"devTools":["devtools","chrome-devtools"],"extension":["chrome-extension"],"feature":["chrome"]}},"edge":{"browsers":["edge"],"appStores":["microsoftAddOnStore","googleChromeWebStore"],"urls":{"bookmarks":["edge://favorites"],"downloads":["edge://downloads"],"extensions":["edge://extensions"],"history":["edge://history"],"newtab":["edge://newtab"],"settings":["edge://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension","extension"],"feature":["edge"]}},"opera":{"browsers":["opera"],"appStores":["operaAddOnStore","googleChromeWebStore"],"urls":{"bookmarks":["opera://bookmarks"],"downloads":["opera://downloads"],"extensions":["opera://extensions"],"history":["opera://history"],"newtab":["opera://newtab","chrome://startpageshared"],"settings":["opera://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension"],"feature":["opera"]}},"firefox":{"browsers":["firefox"],"appStores":["mozillaAddOnStore"],"urls":{"bookmarks":[],"downloads":[],"extensions":["about:addons"],"history":[],"newtab":["about:newtab"],"settings":["about:preferences"]},"schemes":{"devTools":[],"extension":["moz-extension"],"feature":["about"]}},"safari":{"browsers":["safari"],"appStores":["appleMacAppStore"],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"tor":{"browsers":["tor"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"vivaldi":{"browsers":["vivaldi"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"yandex":{"browsers":["yandex"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"arc":{"browsers":["arc"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}}}')},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return f}));var r,o=n(57),i=n(17),a=n(6),c=Object(o.b)({name:"set-edit",initialState:{},reducers:{setEditingStarted:function(e,t){var n=t.payload;e.context=n},setEditingEnded:function(e){var t;null===(t=r)||void 0===t||t(),r=void 0,e.context=void 0}}}),u=c.actions.setEditingEnded,l=c.reducer;function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isNew,n=e.onEditingEnded;return function(e,o){var u=o(),l=u.content,s=u.settings;if(!u.setEdit.context&&1===l.sets.selectedSetIds.length){var f=l.sets.selectedSetIds[0];if(!Object(a.s)(l.sets,f)&&!Object(a.t)(l.sets,f)){if(Object(a.r)(f))return h({type:"local-client",title:Object(i.l)("clientTitle")({settings:s})});var d=Object(a.g)(l.sets,f);if(d)return h({type:"collection",title:d.title,color:d.color,isNew:t});var p=Object(a.n)(l.sets,f);if(p)return h({type:"remote-client",title:p.title})}}function h(t){var o=t.type,i=t.title,a=t.color,u=t.isNew;r=n,e(c.actions.setEditingStarted({id:f,type:o,title:i,color:a,isNew:u}))}}}var f={context:function(e){return e.setEdit.context}}},,,function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(121),o=n(104);var i=n(141);function a(e,t,n){return a=Object(i.a)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Object(o.a)(i,n.prototype),i},a.apply(null,arguments)}function c(e){var t="function"===typeof Map?new Map:void 0;return c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,Object(r.a)(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Object(o.a)(i,e)},c(e)}n.d(t,"a",(function(){return c}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(202);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(0),o=r.createContext();function i(){return r.useContext(o)}t.a=o},function(e,t,n){"use strict";var r=n(157);var o=n(200),i=n(165);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,c=void 0===n?i.standard:n,u=t.easing,l=void 0===u?o.easeInOut:u,s=t.delay,f=void 0===s?0:s;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof c?c:a(c)," ").concat(l," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function a(){return c.apply(this,arguments)}function c(){return(c=Object(r.a)(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",null===(t=chrome)||void 0===t||null===(n=t.tabs)||void 0===n||null===(r=n.query)||void 0===r?void 0:r.call(n,{url:"".concat(Object(o.a)().ext.canonicalMainUrl.toLowerCase(),"*")}));case 4:e.prev=4,e.t0=e.catch(0),console.error("Error getting nxs tabs:",e.t0);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function u(){a().then((function(e){null===e||void 0===e||e.forEach((function(e){try{e.id&&chrome.tabs.reload(e.id)}catch(t){console.error("Error reloading nxs tab:",t)}}))}))}},function(e,t,n){"use strict";var r=n(0),o=r.createContext({});t.a=o},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){return"chrome"}function o(){var e,t,n=null===(e=navigator.userAgentData)||void 0===e||null===(t=e.brands)||void 0===t?void 0:t.find((function(e){return"chromium"===e.brand.toLowerCase()}));return parseInt((null===n||void 0===n?void 0:n.version)||"0",10)||0}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=n(220)},function(e,t,n){"use strict";var r=n(182),o=Object(r.a)();t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(1),o=n(2),i=n(58),a=n(59),c=n(64),u=n(65),l=n(105),s=n(37),f=n(8);function d(){d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function p(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function p(e){return h.apply(this,arguments)}function h(){return h=Object(o.a)(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.settings,e.next=3,n.get("clientId");case 3:if(null===(r=e.sent)||void 0===r?void 0:r.value){e.next=9;break}return e.next=7,n.put({id:"clientId",value:Object(s.c)()});case 7:return e.next=9,n.put({id:"clientCreated",value:Object(f.m)()});case 9:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}var v=(new(function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this,"nxsSettings",{chromeTransactionDurability:"strict"})).settings=void 0,e.version(1).stores({settings:"id"}),e.on("ready",p),e.settings=e.table("settings"),e}return Object(i.a)(n)}(l.a))).settings,b={fetchAllSettings:function(){return v.toArray()},fetchClientSetting:function(){var e=Object(o.a)(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.get(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",n.global?void 0:n.value);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchGlobalSetting:function(){var e=Object(o.a)(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.get(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",n.global?n.value:void 0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),saveClientSetting:function(){var e=Object(o.a)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.put(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),saveGlobalSetting:function(){var e=Object(o.a)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.put(Object(r.a)(Object(r.a)({},t),{},{global:!0}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(5),a=n(77),c=[{key:"debug",name:"Debug",description:"Show inline debug information in the UI.",defaultValue:!1,requiresReload:!0},{key:"debugLocalBackup",name:"Debug local backup",description:o.a.createElement("span",null,"Log local backup operations to the"," ",o.a.createElement("a",{href:"https://sessionbuddy.com/console",target:"_blank",rel:"noopener"},"console"),"."),defaultValue:!1},{key:"debugSessionEvents",name:"Debug session changes",description:o.a.createElement("span",null,"Log session changes to the"," ",o.a.createElement("a",{href:"https://sessionbuddy.com/console",target:"_blank",rel:"noopener"},"console"),"."),defaultValue:!1,requiresReload:!0},{key:"removeTitleSuffixes",name:"Omit title suffixes",description:"Omit suffixes from titles of popular web sites.",defaultValue:!1,requiresReload:!0},{key:"omitSbTitleSuffix",name:"Omit Session Buddy suffix",description:'Omit the "Session Buddy" suffix in the application tab.',defaultValue:!1,requiresReload:!0},{key:"useThemeSensitiveFavicons",name:"Use theme sensitive favicons",description:"Use favicons that adapt to the current theme.",defaultValue:!0,requiresReload:!0},{key:"ingestMaxSize",name:"Maximum text size",description:'Maximum size (in bytes) allowed by "Add from text" and "Open from text". This limit also applies to non-JSON files selected for Import.',defaultValue:i.m,min:0,requiresReload:!0},{key:"enableAutoBackup",name:"Enable auto backup",description:"Enable automatic local backups of collections and events.",defaultValue:!0},{key:"backupWhenIdle",name:"Back up continuously",description:"Back up when data changes instead of just once a day. Requires auto backup to be enabled.",defaultValue:!1},{key:"backupCollectionsMax",name:"Maximum backup collections",description:"Maximum number of collections to include in local backups.",defaultValue:i.b,min:0},{key:"backupEventsMax",name:"Maximum backup events",description:"Maximum number of events to include in local backups.",defaultValue:i.b,min:0},{key:"backupChunkSize",name:"Backup chunk size",description:"Number of collections or events per local backup storage item.",defaultValue:i.a,min:1,max:100},{key:"copyCollectionsMax",name:"Maximum copy collections",description:"Maximum number of collections to allow for copying.",defaultValue:i.e,min:2,requiresReload:!0},{key:"warnOnOpenTabCount",name:"Warn on open tab count",description:"Warn before opening more than this number of tabs at once.",defaultValue:i.n,min:0,requiresReload:!0},{key:"optimizedOpenThreshold",name:"Optimized tab open threshold",description:"Suspend and delay tabs when opening more than this number of tabs if optimizations are enabled.",defaultValue:i.l,min:1,requiresReload:!0},{key:"optimizedOpenDelay",name:"Optimized tab open delay",description:"Delay (in milliseconds) between opening each tab when optimizations are in effect.",defaultValue:i.k,min:0,max:1e4},{key:"collectionFetchCountInitial",name:"Initial collection count",description:"Number of collection tiles to display on app start.",defaultValue:i.c,min:i.c},{key:"collectionFetchCountLazy",name:"Subsequent collection count",description:"Number of additional collection tiles to load while scrolling.",defaultValue:i.d,min:i.d},{key:"collectionFetchAll",name:"Load all collections",description:"Display all collection tiles on app load. May be slow.",defaultValue:!1},{key:"historyFetchCountInitial",name:"Initial history count",description:"Number of history tiles to display on app start.",defaultValue:i.f,min:i.f},{key:"historyFetchCountLazy",name:"Subsequent history count",description:"Number of additional history tiles to load while scrolling.",defaultValue:i.g,min:i.g},{key:"historyFetchAll",name:"Load all history",description:"Display all history tiles on app load. May be slow.",defaultValue:!1},{key:"highIdbUsageThreshold",name:"High IndexedDB usage threshold",description:"Size (in bytes) above which IndexedDB usage is considered high.",defaultValue:300*a.a,min:0},{key:"highExtensionStorageUsageThreshold",name:"High extension storage usage threshold",description:"Size (in bytes) above which extension storage usage is considered high.",defaultValue:100*a.a,min:0}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(150);function o(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{}).onEditingEnded;return function(t,n){var o=n(),u=o.content;if(!o.itemEdit.context&&1===u.sets.selectedSetIds.length){var l=u.sets.selectedSetIds[0],s=Object(i.g)(u.sets,l);if(s&&!Object(i.s)(u.sets,l)&&!Object(i.t)(u.sets,l)){var f=u.items,d=f.selectedUnitIds,p=f.selectedGroupIds;if(1!==d.length||p.length){if(1===p.length&&!d.length){var h,v=p[0];(null===(h=s.folders)||void 0===h?void 0:h.find((function(e){return e.id===v})))&&(r=e,t(c.actions.itemEditingStarted({type:"folder",id:v})))}}else{var b,m=d[0],y=Object(a.p)(null!==(b=s.folders)&&void 0!==b?b:[],(function(e){return e.id===m}));y.unit&&(r=e,t(c.actions.itemEditingStarted({type:"link",id:m})))}}}}}var f={context:function(e){return e.itemEdit.context}}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{}).onSessionEnded;return function(t,n){var o=n().content;if(1===o.sets.selectedSetIds.length&&!o.sets.selectedClientHistoryItemId){var c=o.sets.selectedSetIds[0];if(!Object(i.s)(o.sets,c)&&!Object(i.t)(o.sets,c)){var u=Object(i.p)(o.sets,c);u&&(r=e,t(a.actions.unitAddSessionStarted({setId:c,setType:u})))}}}}var s={context:function(e){return e.unitAddSession.context}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(157);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r=n(0),o=n.n(r).a.createContext(null);t.a=o},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},,,function(e,t,n){(function(t){var n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,f=l||s||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,v=function(){return f.Date.now()};function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==r}(e))return n;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var l=a.test(e);return l||c.test(e)?u(e.slice(2),l?2:8):i.test(e)?n:+e}e.exports=function(e,t,n){var r,o,i,a,c,u,l=0,s=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function g(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=i}function w(){var e=v();if(g(e))return x(e);c=setTimeout(w,function(e){var n=t-(e-u);return f?h(n,i-(e-l)):n}(e))}function x(e){return c=void 0,d&&r?y(e):(r=o=void 0,a)}function O(){var e=v(),n=g(e);if(r=arguments,o=this,u=e,n){if(void 0===c)return function(e){return l=e,c=setTimeout(w,t),s?y(e):a}(u);if(f)return c=setTimeout(w,t),y(u)}return void 0===c&&(c=setTimeout(w,t)),a}return t=m(t)||0,b(n)&&(s=!!n.leading,i=(f="maxWait"in n)?p(m(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),O.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=u=o=c=void 0},O.flush=function(){return void 0===c?a:x(v())},O}}).call(this,n(136))},function(e){e.exports=JSON.parse('{"googleChromeWebStore":{"url":"https://chrome.google.com/webstore/","authoritativeBrowserConfig":"chrome"},"microsoftAddOnStore":{"url":"","authoritativeBrowserConfig":"edge"},"mozillaAddOnStore":{"url":"","authoritativeBrowserConfig":"firefox"},"operaAddOnStore":{"url":"https://addons.opera.com/","authoritativeBrowserConfig":"opera"},"appleMacAppStore":{"url":"","authoritativeBrowserConfig":"safari"}}')},function(e,t,n){e.exports=n(194)},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,c=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u-1},O.prototype.set=function(e,t){var n=this.__data__,r=k(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new x,map:new(g||O),string:new x}},j.prototype.delete=function(e){return E(this,e).delete(e)},j.prototype.get=function(e){return E(this,e).get(e)},j.prototype.has=function(e){return E(this,e).has(e)},j.prototype.set=function(e,t){return E(this,e).set(e,t),this},T.Cache=j,e.exports=T}).call(this,n(136))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n(48),i=!0,a=!1,c=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function s(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!u[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){a=!0,window.clearTimeout(c),c=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",s,!0),t.addEventListener("pointerdown",s,!0),t.addEventListener("touchstart",s,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,o=n(0),i=n.n(o),a=["svgRef","title"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=function(e){var t=e.svgRef,n=e.title,o=u(e,a);return i.a.createElement("svg",c({width:18,height:18,viewBox:"0 0 28 28",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("path",{clipRule:"evenodd",d:"M5.5 2C4.5 2 4 2.948 4 3.5V24.5C4 25.5 5 26 5.5 26H22.5C23.0523 26 24 25.5 24 24.5V10C24 9.5 24 9 23.5 8.5L17.5 2.5C17 2 16.5 2 16.1716 2H5.5ZM6 5C6 4.448 6.448 4 7 4H15V9.5C15 10.0523 15.448 10.5 16 10.5H22V23C22 23.552 21.552 24 21 24H7C6.448 24 6 23.552 6 23V5ZM20.6716 8.5L17 4.82843V8.5H20.6716Z",fill:"currentColor",fillRule:"evenodd"})))},s=i.a.forwardRef((function(e,t){return i.a.createElement(l,c({svgRef:t},e))}));n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,o=n(0),i=n.n(o),a=["svgRef","title"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=function(e){var t=e.svgRef,n=e.title,o=u(e,a);return i.a.createElement("svg",c({height:1024,width:1024,viewBox:"0 0 1024 1024",fill:"currentColor",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("path",{d:"M85.333 682.667 85.333 341.333 170.667 341.333 298.667 469.333 426.667 341.333 512 341.333 512 682.667 426.667 682.667 426.667 462.08 298.667 590.08 170.667 462.08 170.667 682.667 85.333 682.667M682.667 341.333 810.667 341.333 810.667 512 917.333 512 746.667 704 576 512 682.667 512 682.667 341.333Z"})))},s=i.a.forwardRef((function(e,t){return i.a.createElement(l,c({svgRef:t},e))}));n.p},,,function(e,t,n){"use strict";var r=n(54),o=n(15),i=n(255),a=n(4),c=["xs","sm","md","lg","xl"];function u(e,t,n){var o;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var l=n(204),s={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},d={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},b={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=n(60),g={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:s.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(y.e)(e.main,o):"dark"===t&&(e.dark=Object(y.b)(e.main,i)))}function O(e){return Math.round(1e5*e)/1e5}function j(e){return O(e)}var k={textTransform:"uppercase"},S='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,c=void 0===r?S:r,u=n.fontSize,l=void 0===u?14:u,s=n.fontWeightLight,f=void 0===s?300:s,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,v=void 0===h?500:h,b=n.fontWeightBold,m=void 0===b?700:b,y=n.htmlFontSize,g=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,E=Object(o.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var C=l/14,T=x||function(e){return"".concat(e/g*C,"rem")},I=function(e,t,n,r,o){return Object(a.a)({fontFamily:c,fontWeight:e,fontSize:T(t),lineHeight:n},c===S?{letterSpacing:"".concat(O(r/t),"em")}:{},o,w)},P={h1:I(f,96,1.167,-1.5),h2:I(f,60,1.2,-.5),h3:I(p,48,1.167,0),h4:I(p,34,1.235,.25),h5:I(p,24,1.334,0),h6:I(v,20,1.6,.15),subtitle1:I(p,16,1.75,.15),subtitle2:I(v,14,1.57,.1),body1:I(p,16,1.5,.15),body2:I(p,14,1.43,.15),button:I(v,14,1.75,.4,k),caption:I(p,12,1.66,.4),overline:I(p,12,2.66,1,k)};return Object(i.a)(Object(a.a)({htmlFontSize:g,pxToRem:T,round:j,fontFamily:c,fontSize:l,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:m},P),E,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var T=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],I={borderRadius:4},P=n(101),L=(n(119),n(68));var _=function(e,t){return t?Object(i.a)(e,t,{clone:!1}):e},R={xs:0,sm:600,md:960,lg:1280,xl:1920},N={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(R[e],"px)")}};var M={m:"margin",p:"padding"},A={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},D={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},F=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!D[e])return[e];e=D[e]}var t=e.split(""),n=Object(P.a)(t,2),r=n[0],o=n[1],i=M[r],a=A[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]})),z=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function B(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function U(e){var t=B(e.theme);return Object.keys(e).map((function(n){if(-1===z.indexOf(n))return null;var r=H(F(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||N;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Object(L.a)(t)){var o=e.theme.breakpoints||N;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(_,{})}U.propTypes={},U.filterProps=z;var W=n(123),q=n(166);function G(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,O=void 0===r?{}:r,j=e.palette,k=void 0===j?{}:j,S=e.spacing,C=e.typography,P=void 0===C?{}:C,L=Object(o.a)(e,["breakpoints","mixins","palette","spacing","typography"]),_=function(e){var t=e.primary,n=void 0===t?{light:d[300],main:d[500],dark:d[700]}:t,r=e.secondary,c=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,u=e.error,O=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,j=e.warning,k=void 0===j?{light:v[300],main:v[500],dark:v[700]}:j,S=e.info,E=void 0===S?{light:b[300],main:b[500],dark:b[700]}:S,C=e.success,T=void 0===C?{light:m[300],main:m[500],dark:m[700]}:C,I=e.type,P=void 0===I?"light":I,L=e.contrastThreshold,_=void 0===L?3:L,R=e.tonalOffset,N=void 0===R?.2:R,M=Object(o.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function A(e){return Object(y.d)(e,w.text.primary)>=_?w.text.primary:g.text.primary}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return x(e,"light",n,N),x(e,"dark",r,N),e.contrastText||(e.contrastText=A(e.main)),e},F={dark:w,light:g};return Object(i.a)(Object(a.a)({common:s,type:P,primary:D(n),secondary:D(c,"A400","A200","A700"),error:D(O),warning:D(k),info:D(E),success:D(T),grey:f,contrastThreshold:_,getContrastText:A,augmentColor:D,tonalOffset:N},F[P]),M)}(k),R=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,u=e.step,l=void 0===u?5:u,s=Object(o.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function d(e,t){var r=c.indexOf(t);return r===c.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[c[r+1]]?n[c[r+1]]:t)-l/100).concat(i,")")}return Object(a.a)({keys:c,values:n,up:f,down:function(e){var t=c.indexOf(e)+1,r=n[c[t]];return t===c.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(i,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},s)}(n),N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=B({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?A-1:0),F=1;F1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)(e,Object(r.a)({defaultTheme:i.a},t))}},,,,,,,,function(e,t,n){"use strict";var r=n(175),o="function"===typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,b="function"===typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nP.length&&P.push(e)}function R(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var c=!1;if(null===e)c=!0;else switch(o){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case i:case a:c=!0}}if(c)return n(r,e,""===t?"."+M(e,0):t),1;if(c=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u1)for(var n=1;n1?o[l]=o[l].concat(b):o[l].push(m):(o[l]=[o[l]],o[l].push(m)):b.length>1?o[l]=b:t.alwaysArray?o[l]=[m]:o[l]=m:n[l]?n[l]instanceof Array?b.length>1?n[l]=n[l].concat(b):n[l].push(m):(n[l]=[n[l]],n[l].push(m)):b.length>1?n[l]=b:t.alwaysArray?n[l]=[m]:n[l]=m}}else if(v){t.offsets&&n.offsets.push(c);var m,y=(m=c.value).split("-");n[l]={},2===y.length?(n[l].from=y[0],n[l].to=y[1]):!y.length%2||(n[l].from=m)}else{var g=c.keyword+":"+c.value;n.text.push(g),t.offsets&&n.offsets.push({text:g,offsetStart:c.offsetStart,offsetEnd:c.offsetEnd})}}return n.text.length?t.tokenize||(n.text=n.text.join(" ").trim()):delete n.text,n.exclude=o,n}return e}return e},t.stringify=function(e,n,r){if(n||(n={offsets:!0}),!e)return"";if("string"===typeof e)return e;if(Array.isArray(e))return e.join(" ");if(!Object.keys(e).length)return"";if(3===Object.keys(e).length&&e.text&&e.offsets&&e.exclude&&"string"===typeof e.text)return e.text;r||(r="");var o=function(e){return e.indexOf(" ")>-1?JSON.stringify(e):e},i=function(e){return r+e},a=[];if(e.text){var c=[];"string"===typeof e.text?c.push(e.text):c.push.apply(c,e.text),c.length>0&&a.push(c.map(o).map(i).join(" "))}return n.keywords&&n.keywords.forEach((function(t){if(e[t]){var n=[];"string"===typeof e[t]?n.push(e[t]):n.push.apply(n,e[t]),n.length>0&&a.push(i(t+":"+n.map(o).join(",")))}})),n.ranges&&n.ranges.forEach((function(t){if(e[t]){var n=e[t].from,r=e[t].to;r&&(n=n+"-"+r),n&&a.push(i(t+":"+n))}})),e.exclude&&Object.keys(e.exclude).length>0&&a.push(t.stringify(e.exclude,n,"-")),a.join(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(11),a=n(28),c=function(e){var t=e.children;return o.a.createElement(i.a,{store:a.a},t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(2),o=n(14),i=n(0),a=n(29),c=n(100),u=n(28),l=n(17);function s(){s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var f=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).skipRemoteConfig,t=Object(u.b)(),n=Object(i.useState)(!1),f=Object(o.a)(n,2),d=f[0],p=f[1];return Object(i.useEffect)((function(){function n(){return(n=Object(r.a)(s().mark((function n(){var r,o,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(a.b)();case 2:return r=n.sent,o=r.id,i=r.settings,n.next=7,t(Object(l.e)());case 7:if(e){n.next=12;break}return n.next=10,i.get("shareUsageStats");case 10:n.sent&&Object(c.a)({clientId:o});case 12:p(!0);case 13:case"end":return n.stop()}}),n)})))).apply(this,arguments)}!function(){n.apply(this,arguments)}()}),[t,e]),d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(182),i="hsl(0, 0%, 50%)",a={type:"light",primary:{main:"#007acc",light:"hsl(204, 100%, 45%)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},secondary:{main:"#474747",light:"#474747",dark:"#474747",contrastText:"#fff"},success:{main:"#00d400"},error:{main:"#b94b43",light:"#b8000699",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},info:{main:"hsl(0, 0%, 93%)",contrastText:"hsl(0, 0%, 45%)"},text:{primary:"#000",secondary:"#8c8c8c"},background:{paper:"#fff",secondaryPaper:"hsla(0, 0%, 0%, 8%)",default:"#fff",secondaryDefault:"#f0f3f4",popup:"#3c3c3c",secondary:"hsla(0, 0%, 0%, 4%)"},divider:"#e6e6e6",tonalOffset:{light:.2,dark:.2},nxsSet:{red:{main:"#f74e4e"},orange:{main:"#ffa500"},yellow:{main:"#d2d200"},green:{main:"#18db08"},teal:{main:"#1dcccc"},blue:{main:"#199df5"},purple:{main:"#cc4bff"},pink:{main:"#ff9ad9"},brown:{main:"#bd8264"},gray:{main:"#cdcdcd"},neutral:{main:"#888"}},nxsAction:{hover:{main:"rgba(0, 0, 0, 0.04)",contrastText:"#000",dark:"rgb(204, 204, 204)"},focus:{main:"rgba(0, 0, 0, 0.08)",contrastText:"#000"},active:{main:"rgba(0, 0, 0, 0.12)",contrastText:"#000"},selected:{main:"rgba(0, 0, 0, 0.08)",contrastText:"#000",secondaryContrastText:"rgb(99, 99, 99)"}},nxsSetIcon:{client:{main:"#f93",contrastText:"#fff"},event:{main:"#8571ff",contrastText:"#fff"},collection:{main:"#38c300",contrastText:"#fff"}},nxsTimelineMarker:{neutral:{main:"hsl(0, 0%, 70%)",light:"hsl(0, 0%, 93%)"},constructive:{main:"rgb(115, 177, 101)",light:"rgb(217, 239, 211)"},destructive:{main:"rgb(214, 165, 116)",light:"rgb(255, 236, 226)"}},nxsUrl:{link:{main:"#8c8c8c"},hover:{main:"#007acc"},visited:{main:"#551a8b"}}},c="rgb(241, 241, 241)",u={type:"dark",primary:{main:"#005c9b",dark:"hsl(204, 90%, 26%)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},secondary:{main:"#f1f1f1",dark:"#f1f1f1",light:"#f1f1f1",contrastText:"#000"},success:{main:"#00d400"},error:{main:"#732b2b",light:"#ffa2a2",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},info:{main:"#83838375",contrastText:"#dadada"},text:{primary:c,secondary:"#b3b3b3"},background:{paper:"#424242",secondaryPaper:"hsla(0, 0%, 100%, 22%)",default:"#1e1e1e",secondaryDefault:"#2b2b2b",popup:"#666",secondary:"hsla(0, 0%, 100%, 4%)"},divider:"#757575",tonalOffset:{light:.2,dark:.16},nxsSet:{red:{main:"#ff4343"},orange:{main:"#dd6700"},yellow:{main:"#e9b80d"},green:{main:"#21aa16"},teal:{main:"#00b8aa"},blue:{main:"#0078ca"},purple:{main:"#ba59de"},pink:{main:"#ff4c9a"},brown:{main:"#91614a"},gray:{main:"#888"},neutral:{main:c}},nxsAction:{hover:{main:"rgba(255, 255, 255, 0.09)",contrastText:"rgb(241, 241, 241)",light:"rgb(77, 77, 77)"},focus:{main:"rgba(255, 255, 255, 0.16)",contrastText:"rgb(241, 241, 241)"},active:{main:"rgba(255, 255, 255, 0.24)",contrastText:"rgb(241, 241, 241)"},selected:{main:"rgba(255, 255, 255, 0.16)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.62)"}},nxsSetIcon:{client:{main:"#d08343",contrastText:"#fff"},event:{main:"#7072fd",contrastText:"#fff"},collection:{main:"#51b21d",contrastText:"#fff"}},nxsTimelineMarker:{neutral:{main:"hsl(0, 0%, 60%)"},constructive:{main:"rgb(115, 177, 101)"},destructive:{main:"rgb(214, 165, 116)"}},nxsUrl:{link:{main:"#a4a4a4"},hover:{main:"#6ba3fc"},visited:{main:"#bd79fc"}}};function l(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?u:a,t=Object(o.a)({props:{MuiButtonBase:{disableRipple:!0},MuiButton:{disableElevation:!0},MuiTooltip:{arrow:!0}},typography:{button:{fontSize:"1rem",fontWeight:400,textTransform:"none"}},palette:e,shape:{borderRadiusSmall:8,borderRadius:10,borderRadiusLarge:12}});t.palette.nxsSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{red:c(e.red),orange:c(e.orange),yellow:c(e.yellow),green:c(e.green),teal:c(e.teal),blue:c(e.blue),purple:c(e.purple),pink:c(e.pink),brown:c(e.brown),gray:c(e.gray),neutral:c(e.neutral)}}(e.nxsSet),t.palette.nxsAction=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{hover:c(e.hover),focus:c(e.focus),active:c(e.active),selected:c(e.selected)}}(e.nxsAction),t.palette.nxsSetIcon=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{client:c(e.client),event:c(e.event),collection:c(e.collection)}}(e.nxsSetIcon),t.palette.nxsTimelineMarker=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n={light:t};return{neutral:c(e.neutral,n),constructive:c(e.constructive,n),destructive:c(e.destructive,n)}}(e.nxsTimelineMarker,t.palette.background.default),t.palette.nxsUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{link:c(e.link),visited:c(e.visited),hover:c(e.hover),active:c(e.active),focus:c(e.focus)}}(e.nxsUrl);var n=("dark"===t.palette.type?["0.6","0.42","0.36"]:["0.2","0.14","0.12"]).map((function(e){return"rgba(0,0,0,".concat(e,")")}));return t.shadows=["none","0px 2px 1px -1px ".concat(n[0],",0px 1px 1px 0px ").concat(n[1],",0px 1px 3px 0px ").concat(n[2]),"0px 3px 1px -2px ".concat(n[0],",0px 2px 2px 0px ").concat(n[1],",0px 1px 5px 0px ").concat(n[2]),"0px 3px 3px -2px ".concat(n[0],",0px 3px 4px 0px ").concat(n[1],",0px 1px 8px 0px ").concat(n[2]),"0px 2px 4px -1px ".concat(n[0],",0px 4px 5px 0px ").concat(n[1],",0px 1px 10px 0px ").concat(n[2]),"0px 3px 5px -1px ".concat(n[0],",0px 5px 8px 0px ").concat(n[1],",0px 1px 14px 0px ").concat(n[2]),"0px 3px 5px -1px ".concat(n[0],",0px 6px 10px 0px ").concat(n[1],",0px 1px 18px 0px ").concat(n[2]),"0px 4px 5px -2px ".concat(n[0],",0px 7px 10px 1px ").concat(n[1],",0px 2px 16px 1px ").concat(n[2]),"0px 5px 5px -3px ".concat(n[0],",0px 8px 10px 1px ").concat(n[1],",0px 3px 14px 2px ").concat(n[2]),"0px 5px 6px -3px ".concat(n[0],",0px 9px 12px 1px ").concat(n[1],",0px 3px 16px 2px ").concat(n[2]),"0px 6px 6px -3px ".concat(n[0],",0px 10px 14px 1px ").concat(n[1],",0px 4px 18px 3px ").concat(n[2]),"0px 6px 7px -4px ".concat(n[0],",0px 11px 15px 1px ").concat(n[1],",0px 4px 20px 3px ").concat(n[2]),"0px 7px 8px -4px ".concat(n[0],",0px 12px 17px 2px ").concat(n[1],",0px 5px 22px 4px ").concat(n[2]),"0px 7px 8px -4px ".concat(n[0],",0px 13px 19px 2px ").concat(n[1],",0px 5px 24px 4px ").concat(n[2]),"0px 7px 9px -4px ".concat(n[0],",0px 14px 21px 2px ").concat(n[1],",0px 5px 26px 4px ").concat(n[2]),"0px 8px 9px -5px ".concat(n[0],",0px 15px 22px 2px ").concat(n[1],",0px 6px 28px 5px ").concat(n[2]),"0px 8px 10px -5px ".concat(n[0],",0px 16px 24px 2px ").concat(n[1],",0px 6px 30px 5px ").concat(n[2]),"0px 8px 11px -5px ".concat(n[0],",0px 17px 26px 2px ").concat(n[1],",0px 6px 32px 5px ").concat(n[2]),"0px 9px 11px -5px ".concat(n[0],",0px 18px 28px 2px ").concat(n[1],",0px 7px 34px 6px ").concat(n[2]),"0px 9px 12px -6px ".concat(n[0],",0px 19px 29px 2px ").concat(n[1],",0px 7px 36px 6px ").concat(n[2]),"0px 10px 13px -6px ".concat(n[0],",0px 20px 31px 3px ").concat(n[1],",0px 8px 38px 7px ").concat(n[2]),"0px 10px 13px -6px ".concat(n[0],",0px 21px 33px 3px ").concat(n[1],",0px 8px 40px 7px ").concat(n[2]),"0px 10px 14px -6px ".concat(n[0],",0px 22px 35px 3px ").concat(n[1],",0px 8px 42px 7px ").concat(n[2]),"0px 11px 14px -7px ".concat(n[0],",0px 23px 36px 3px ").concat(n[1],",0px 9px 44px 8px ").concat(n[2]),"0px 11px 15px -7px ".concat(n[0],",0px 24px 38px 3px ").concat(n[1],",0px 9px 46px 8px ").concat(n[2])],t.overrides={MuiButton:{root:{borderRadius:t.shape.borderRadiusSmall}},MuiCheckbox:{root:{marginTop:-9,marginBottom:-9}},MuiDialog:{scrollPaper:{alignItems:"flex-start","& div.MuiDialog-paper":{transform:"translate(0, 120px)"}},paperScrollBody:{verticalAlign:"top"}},MuiDialogTitle:{root:{paddingBottom:0}},MuiDialogContent:{root:{padding:t.spacing(2,3),textAlign:"center"}},MuiDialogContentText:{root:{marginBottom:0}},MuiFormControlLabel:{root:{marginRight:0}},MuiList:{root:{outline:"none"}},MuiListItem:{button:{transition:"none"}},MuiListItemIcon:{root:{minWidth:30,color:"dark"===t.palette.type?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)","& svg":{width:18,height:18}}},MuiDivider:{root:{margin:4}},MuiMenuItem:{root:{paddingTop:4,paddingBottom:4,"&:hover, &:focus":{backgroundColor:t.palette.nxsAction.hover.main}},gutters:{paddingRight:t.spacing(3)}},MuiSelect:{root:{paddingLeft:t.spacing(1)}},MuiSnackbarContent:{root:{color:"#fff",fontSize:"1em",padding:t.spacing(1,3)},action:{"& button":{marginLeft:14,color:"#fff","&:hover, &:focus":{color:"#fff",backgroundColor:"rgba(255, 255, 255, 0.26)"}},"& .MuiButton-root":{backgroundColor:"rgba(255, 255, 255, 0.14)"},"& .MuiIconButton-root":{padding:t.spacing(.6)}}},MuiTabs:{indicator:{transitionDuration:"150ms",height:3,backgroundColor:t.palette.text.primary},flexContainer:{borderBottom:"1px solid ".concat(t.palette.divider)}},MuiTab:{textColorPrimary:{color:t.palette.text.primary,"&.Mui-selected":{color:t.palette.text.primary}}},MuiTextField:{root:{"& .Mui-error":{color:t.palette.error.light,"&.MuiInput-underline:after":{borderBottomColor:t.palette.error.light}}}},MuiTooltip:{tooltip:{fontSize:"0.86rem",backgroundColor:t.palette.background.popup,whiteSpace:"pre-wrap",padding:"6px 12px",borderRadius:t.shape.borderRadiusSmall},arrow:{color:t.palette.background.popup}},MuiTypography:{colorError:{color:t.palette.error.light}}},t;function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.palette.augmentColor(Object(r.a)(Object(r.a)(Object(r.a)({},n),e),{},{main:e.main||n.main||i}))}}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,c=void 0===i?a||t.pulsate:i,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var s,f,d,p=l?null:w.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(c||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)s=Math.round(h.width/2),f=Math.round(h.height/2);else{var v=e.touches?e.touches[0]:e,b=v.clientX,O=v.clientY;s=Math.round(b-h.left),f=Math.round(O-h.top)}if(c)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(d+=1);else{var j=2*Math.max(Math.abs((p?p.clientWidth:0)-s),s)+2,k=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(j,2)+Math.pow(k,2))}e.touches?null===g.current&&(g.current=function(){x({pulsate:o,rippleX:s,rippleY:f,rippleSize:d,cb:n})},y.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):x({pulsate:o,rippleX:s,rippleY:f,rippleSize:d,cb:n})}}),[a,x]),k=i.useCallback((function(){O({},{pulsate:!0})}),[O]),E=i.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(y.current=setTimeout((function(){E(e,t)})));g.current=null,h((function(e){return e.length>0?e.slice(1):e})),b.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:k,start:O,stop:E}}),[k,O,E]),i.createElement("span",Object(r.a)({className:Object(u.a)(c.root,l),ref:w},s),i.createElement(j,{component:null,exit:!0},d))})),C=Object(f.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(E)),T=i.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,f=e.centerRipple,p=void 0!==f&&f,h=e.children,v=e.classes,b=e.className,m=e.component,y=void 0===m?"button":m,g=e.disabled,w=void 0!==g&&g,x=e.disableRipple,O=void 0!==x&&x,j=e.disableTouchRipple,k=void 0!==j&&j,S=e.focusRipple,E=void 0!==S&&S,T=e.focusVisibleClassName,I=e.onBlur,P=e.onClick,L=e.onFocus,_=e.onFocusVisible,R=e.onKeyDown,N=e.onKeyUp,M=e.onMouseDown,A=e.onMouseLeave,D=e.onMouseUp,F=e.onTouchEnd,z=e.onTouchMove,B=e.onTouchStart,H=e.onDragLeave,U=e.tabIndex,W=void 0===U?0:U,q=e.TouchRippleProps,G=e.type,V=void 0===G?"button":G,K=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=i.useRef(null);var Y=i.useRef(null),Q=i.useState(!1),X=Q[0],Z=Q[1];w&&X&&Z(!1);var J=Object(d.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;return Object(s.a)((function(r){return t&&t(r),!n&&Y.current&&Y.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),$.current.focus()}}}),[]),i.useEffect((function(){X&&E&&!O&&Y.current.pulsate()}),[O,E,X]);var oe=re("start",M),ie=re("stop",H),ae=re("stop",D),ce=re("stop",(function(e){X&&e.preventDefault(),A&&A(e)})),ue=re("start",B),le=re("stop",F),se=re("stop",z),fe=re("stop",(function(e){X&&(te(e),Z(!1)),I&&I(e)}),!1),de=Object(s.a)((function(e){$.current||($.current=e.currentTarget),ee(e)&&(Z(!0),_&&_(e)),L&&L(e)})),pe=function(){var e=c.findDOMNode($.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),ve=Object(s.a)((function(e){E&&!he.current&&X&&Y.current&&" "===e.key&&(he.current=!0,e.persist(),Y.current.stop(e,(function(){Y.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),R&&R(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),P&&P(e))})),be=Object(s.a)((function(e){E&&" "===e.key&&Y.current&&X&&!e.defaultPrevented&&(he.current=!1,e.persist(),Y.current.stop(e,(function(){Y.current.pulsate(e)}))),N&&N(e),P&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),me=y;"button"===me&&K.href&&(me="a");var ye={};"button"===me?(ye.type=V,ye.disabled=w):("a"===me&&K.href||(ye.role="button"),ye["aria-disabled"]=w);var ge=Object(l.a)(a,t),we=Object(l.a)(ne,$),xe=Object(l.a)(ge,we),Oe=i.useState(!1),je=Oe[0],ke=Oe[1];i.useEffect((function(){ke(!0)}),[]);var Se=je&&!O&&!w;return i.createElement(me,Object(r.a)({className:Object(u.a)(v.root,b,X&&[v.focusVisible,T],w&&v.disabled),onBlur:fe,onClick:P,onFocus:de,onKeyDown:ve,onKeyUp:be,onMouseDown:oe,onMouseLeave:ce,onMouseUp:ae,onDragLeave:ie,onTouchEnd:le,onTouchMove:se,onTouchStart:ue,ref:xe,tabIndex:w?-1:W},ye,K),h,Se?i.createElement(C,Object(r.a)({ref:Y,center:p},q)):null)}));t.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(T)},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(204),a=n(0),c=n(19),u=n(94),l=n(118),s=n(23),f=n(31),d=n(44),p=n(128);function h(e,t){return parseInt(e[t],10)||0}var v="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,b={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},m=a.forwardRef((function(e,t){var n=e.onChange,i=e.rows,c=e.rowsMax,u=e.rowsMin,l=e.maxRows,s=e.minRows,f=void 0===s?1:s,m=e.style,y=e.value,g=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),w=l||c,x=i||u||f,O=a.useRef(null!=y).current,j=a.useRef(null),k=Object(d.a)(t,j),S=a.useRef(null),E=a.useRef(0),C=a.useState({}),T=C[0],I=C[1],P=a.useCallback((function(){var t=j.current,n=window.getComputedStyle(t),r=S.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=h(n,"padding-bottom")+h(n,"padding-top"),a=h(n,"border-bottom-width")+h(n,"border-top-width"),c=r.scrollHeight-i;r.value="x";var u=r.scrollHeight-i,l=c;x&&(l=Math.max(Number(x)*u,l)),w&&(l=Math.min(Number(w)*u,l));var s=(l=Math.max(l,u))+("border-box"===o?i+a:0),f=Math.abs(l-c)<=1;I((function(e){return E.current<20&&(s>0&&Math.abs((e.outerHeightStyle||0)-s)>1||e.overflow!==f)?(E.current+=1,{overflow:f,outerHeightStyle:s}):e}))}),[w,x,e.placeholder]);a.useEffect((function(){var e=Object(p.a)((function(){E.current=0,P()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[P]),v((function(){P()})),a.useEffect((function(){E.current=0}),[y]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(o.a)({value:y,onChange:function(e){E.current=0,O||P(),n&&n(e)},ref:k,rows:x,style:Object(o.a)({height:T.outerHeightStyle,overflow:T.overflow?"hidden":null},m)},g)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:Object(o.a)({},b,m)}))})),y=n(133),g="undefined"===typeof window?a.useEffect:a.useLayoutEffect,w=a.forwardRef((function(e,t){var n=e["aria-describedby"],s=e.autoComplete,p=e.autoFocus,h=e.classes,v=e.className,b=(e.color,e.defaultValue),w=e.disabled,x=e.endAdornment,O=(e.error,e.fullWidth),j=void 0!==O&&O,k=e.id,S=e.inputComponent,E=void 0===S?"input":S,C=e.inputProps,T=void 0===C?{}:C,I=e.inputRef,P=(e.margin,e.multiline),L=void 0!==P&&P,_=e.name,R=e.onBlur,N=e.onChange,M=e.onClick,A=e.onFocus,D=e.onKeyDown,F=e.onKeyUp,z=e.placeholder,B=e.readOnly,H=e.renderSuffix,U=e.rows,W=e.rowsMax,q=e.rowsMin,G=e.maxRows,V=e.minRows,K=e.startAdornment,$=e.type,Y=void 0===$?"text":$,Q=e.value,X=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Z=null!=T.value?T.value:Q,J=a.useRef(null!=Z).current,ee=a.useRef(),te=a.useCallback((function(e){0}),[]),ne=Object(d.a)(T.ref,te),re=Object(d.a)(I,ne),oe=Object(d.a)(ee,re),ie=a.useState(!1),ae=ie[0],ce=ie[1],ue=Object(l.b)();var le=Object(u.a)({props:e,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});le.focused=ue?ue.focused:ae,a.useEffect((function(){!ue&&w&&ae&&(ce(!1),R&&R())}),[ue,w,ae,R]);var se=ue&&ue.onFilled,fe=ue&&ue.onEmpty,de=a.useCallback((function(e){Object(y.b)(e)?se&&se():fe&&fe()}),[se,fe]);g((function(){J&&de({value:Z})}),[Z,de,J]);a.useEffect((function(){de(ee.current)}),[]);var pe=E,he=Object(o.a)({},T,{ref:oe});"string"!==typeof pe?he=Object(o.a)({inputRef:oe,type:Y},he,{ref:null}):L?!U||G||V||W||q?(he=Object(o.a)({minRows:U||V,rowsMax:W,maxRows:G},he),pe=m):pe="textarea":he=Object(o.a)({type:Y},he);return a.useEffect((function(){ue&&ue.setAdornedStart(Boolean(K))}),[ue,K]),a.createElement("div",Object(o.a)({className:Object(c.a)(h.root,h["color".concat(Object(f.a)(le.color||"primary"))],v,le.disabled&&h.disabled,le.error&&h.error,j&&h.fullWidth,le.focused&&h.focused,ue&&h.formControl,L&&h.multiline,K&&h.adornedStart,x&&h.adornedEnd,"dense"===le.margin&&h.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),M&&M(e)},ref:t},X),K,a.createElement(l.a.Provider,{value:null},a.createElement(pe,Object(o.a)({"aria-invalid":le.error,"aria-describedby":n,autoComplete:s,autoFocus:p,defaultValue:b,disabled:le.disabled,id:k,onAnimationStart:function(e){de("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:_,placeholder:z,readOnly:B,required:le.required,rows:U,value:Z,onKeyDown:D,onKeyUp:F},he,{className:Object(c.a)(h.input,T.className,le.disabled&&h.disabled,L&&h.inputMultiline,le.hiddenLabel&&h.inputHiddenLabel,K&&h.inputAdornedStart,x&&h.inputAdornedEnd,"search"===Y&&h.inputTypeSearch,"dense"===le.margin&&h.inputMarginDense),onBlur:function(e){R&&R(e),T.onBlur&&T.onBlur(e),ue&&ue.onBlur?ue.onBlur(e):ce(!1)},onChange:function(e){if(!J){var t=e.target||ee.current;if(null==t)throw new Error(Object(i.a)(1));de({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o