@gkd-kit/inspect 0.0.1726227642140 → 0.0.1728462303035

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-Dr-v-0_y.js → ActionCard.vue_vue_type_script_setup_true_lang-D2f2zW7b.js} +2 -2
  2. package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-Dr-v-0_y.js.map → ActionCard.vue_vue_type_script_setup_true_lang-D2f2zW7b.js.map} +1 -1
  3. package/dist/assets/{DevicePage-99_3J34X.js → DevicePage-BPmKnXuw.js} +2 -2
  4. package/dist/assets/{DevicePage-99_3J34X.js.map → DevicePage-BPmKnXuw.js.map} +1 -1
  5. package/dist/assets/{HomePage-9rLah5Wp.js → HomePage-BCLKJI9l.js} +2 -2
  6. package/dist/assets/{HomePage-9rLah5Wp.js.map → HomePage-BCLKJI9l.js.map} +1 -1
  7. package/dist/assets/{ImportPage-Dk5VjEU_.js → ImportPage-6CQo5Zvl.js} +2 -2
  8. package/dist/assets/{ImportPage-Dk5VjEU_.js.map → ImportPage-6CQo5Zvl.js.map} +1 -1
  9. package/dist/assets/{PreviewSharePage-2K9o878c.js → PreviewSharePage-DiFufsy2.js} +2 -2
  10. package/dist/assets/{PreviewSharePage-2K9o878c.js.map → PreviewSharePage-DiFufsy2.js.map} +1 -1
  11. package/dist/assets/{SelectorPage-B_7oLClp.js → SelectorPage-1Bhoa1BZ.js} +2 -2
  12. package/dist/assets/SelectorPage-1Bhoa1BZ.js.map +1 -0
  13. package/dist/assets/{SnapshotPage-Bg4c8Oph.js → SnapshotPage-D-3NPjhd.js} +5 -5
  14. package/dist/assets/{SnapshotPage-Bg4c8Oph.js.map → SnapshotPage-D-3NPjhd.js.map} +1 -1
  15. package/dist/assets/{TrackGraph-DjnqLrXm.js → TrackGraph-c1dGOHx9.js} +2 -2
  16. package/dist/assets/{TrackGraph-DjnqLrXm.js.map → TrackGraph-c1dGOHx9.js.map} +1 -1
  17. package/dist/assets/{_404Page-B2M4OTwT.js → _404Page-SUKvHtMY.js} +2 -2
  18. package/dist/assets/{_404Page-B2M4OTwT.js.map → _404Page-SUKvHtMY.js.map} +1 -1
  19. package/dist/assets/{dayjs.min-BS9GBYxP.js → dayjs.min-Bn70kxL7.js} +10 -10
  20. package/dist/assets/{dayjs.min-BS9GBYxP.js.map → dayjs.min-Bn70kxL7.js.map} +1 -1
  21. package/dist/assets/{error-CMGw743e.js → error-q1gk-PhW.js} +2 -2
  22. package/dist/assets/{error-CMGw743e.js.map → error-q1gk-PhW.js.map} +1 -1
  23. package/dist/assets/{export-_87gDXL6.js → export-5OojlAEF.js} +2 -2
  24. package/dist/assets/{export-_87gDXL6.js.map → export-5OojlAEF.js.map} +1 -1
  25. package/dist/assets/{fetch-BmeNEwPq.js → fetch-Dh3kQLu5.js} +2 -2
  26. package/dist/assets/{fetch-BmeNEwPq.js.map → fetch-Dh3kQLu5.js.map} +1 -1
  27. package/dist/assets/{import-DIf6n_TM.js → import-BJqKBjn4.js} +2 -2
  28. package/dist/assets/{import-DIf6n_TM.js.map → import-BJqKBjn4.js.map} +1 -1
  29. package/dist/assets/{index-D52JPXbN.js → index-Cb_Ek-sW.js} +2 -2
  30. package/dist/assets/{index-D52JPXbN.js.map → index-Cb_Ek-sW.js.map} +1 -1
  31. package/dist/assets/{index-CYOhDK3x.js → index-CjSeFmRv.js} +3 -3
  32. package/dist/assets/{index-CYOhDK3x.js.map → index-CjSeFmRv.js.map} +1 -1
  33. package/dist/assets/{index-BhB6U9Pt.js → index-KFUDHLvX.js} +2 -2
  34. package/dist/assets/{index-BhB6U9Pt.js.map → index-KFUDHLvX.js.map} +1 -1
  35. package/dist/assets/{table-CAKFQsKO.js → table-CEX2OnIP.js} +2 -2
  36. package/dist/assets/{table-CAKFQsKO.js.map → table-CEX2OnIP.js.map} +1 -1
  37. package/dist/index.html +3 -3
  38. package/package.json +1 -1
  39. package/dist/assets/SelectorPage-B_7oLClp.js.map +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/HomePage-9rLah5Wp.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-Dr-v-0_y.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/fetch-BmeNEwPq.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/index-D52JPXbN.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/export-_87gDXL6.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/index-CE_5kTG8.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/dayjs.min-BS9GBYxP.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/import-DIf6n_TM.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/table-CAKFQsKO.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/SnapshotPage-Bg4c8Oph.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/index-BhB6U9Pt.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/error-CMGw743e.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/ImportPage-Dk5VjEU_.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/DevicePage-99_3J34X.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1726227642140/files/dist/assets/PreviewSharePage-2K9o878c.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/HomePage-BCLKJI9l.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-D2f2zW7b.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/fetch-Dh3kQLu5.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/index-Cb_Ek-sW.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/export-5OojlAEF.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/index-CE_5kTG8.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/dayjs.min-Bn70kxL7.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/import-BJqKBjn4.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/table-CEX2OnIP.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/SnapshotPage-D-3NPjhd.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/index-KFUDHLvX.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/error-q1gk-PhW.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/ImportPage-6CQo5Zvl.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/DevicePage-BPmKnXuw.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1728462303035/files/dist/assets/PreviewSharePage-DiFufsy2.js"])))=>i.map(i=>d[i]);
2
2
  (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();/**
3
3
  * @vue/shared v3.5.4
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -555,7 +555,7 @@ ${t}
555
555
  Version 1.10.0
556
556
  https://localforage.github.io/localForage
557
557
  (c) 2013-2017 Mozilla, Apache License 2.0
558
- */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function s(c,f){if(!o[c]){if(!r[c]){var u=typeof Uo=="function"&&Uo;if(!f&&u)return u(c,!0);if(a)return a(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var v=o[c]={exports:{}};r[c][0].call(v.exports,function(p){var C=r[c][1][p];return s(C||p)},v,v.exports,n,r,o,i)}return o[c].exports}for(var a=typeof Uo=="function"&&Uo,l=0;l<i.length;l++)s(i[l]);return s}({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,c=new s(p),f=i.document.createTextNode("");c.observe(f,{characterData:!0}),a=function(){f.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var u=new i.MessageChannel;u.port1.onmessage=p,a=function(){u.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var S=i.document.createElement("script");S.onreadystatechange=function(){p(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},i.document.documentElement.appendChild(S)}:a=function(){setTimeout(p,0)};var d,v=[];function p(){d=!0;for(var S,x,R=v.length;R;){for(x=v,v=[],S=-1;++S<R;)x[S]();R=v.length}d=!1}r.exports=C;function C(S){v.push(S)===1&&!d&&a()}}).call(this,typeof Vo<"u"?Vo:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],f=["PENDING"];r.exports=u;function u(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,T!==s&&C(this,T)}u.prototype.catch=function(T){return this.then(null,T)},u.prototype.then=function(T,P){if(typeof T!="function"&&this.state===c||typeof P!="function"&&this.state===l)return this;var b=new this.constructor(s);if(this.state!==f){var O=this.state===c?T:P;v(b,O,this.outcome)}else this.queue.push(new d(b,T,P));return b};function d(T,P,b){this.promise=T,typeof P=="function"&&(this.onFulfilled=P,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(T){a.resolve(this.promise,T)},d.prototype.otherCallFulfilled=function(T){v(this.promise,this.onFulfilled,T)},d.prototype.callRejected=function(T){a.reject(this.promise,T)},d.prototype.otherCallRejected=function(T){v(this.promise,this.onRejected,T)};function v(T,P,b){i(function(){var O;try{O=P(b)}catch(A){return a.reject(T,A)}O===T?a.reject(T,new TypeError("Cannot resolve promise with itself")):a.resolve(T,O)})}a.resolve=function(T,P){var b=S(p,P);if(b.status==="error")return a.reject(T,b.value);var O=b.value;if(O)C(T,O);else{T.state=c,T.outcome=P;for(var A=-1,G=T.queue.length;++A<G;)T.queue[A].callFulfilled(P)}return T},a.reject=function(T,P){T.state=l,T.outcome=P;for(var b=-1,O=T.queue.length;++b<O;)T.queue[b].callRejected(P);return T};function p(T){var P=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof P=="function")return function(){P.apply(T,arguments)}}function C(T,P){var b=!1;function O(D){b||(b=!0,a.reject(T,D))}function A(D){b||(b=!0,a.resolve(T,D))}function G(){P(A,O)}var Z=S(G);Z.status==="error"&&O(Z.value)}function S(T,P){var b={};try{b.value=T(P),b.status="success"}catch(O){b.status="error",b.value=O}return b}u.resolve=x;function x(T){return T instanceof this?T:a.resolve(new this(s),T)}u.reject=R;function R(T){var P=new this(s);return a.reject(P,T)}u.all=B;function B(T){var P=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=T.length,O=!1;if(!b)return this.resolve([]);for(var A=new Array(b),G=0,Z=-1,D=new this(s);++Z<b;)ie(T[Z],Z);return D;function ie(fe,Se){P.resolve(fe).then(de,function(te){O||(O=!0,a.reject(D,te))});function de(te){A[Se]=te,++G===b&&!O&&(O=!0,a.resolve(D,A))}}}u.race=k;function k(T){var P=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=T.length,O=!1;if(!b)return this.resolve([]);for(var A=-1,G=new this(s);++A<b;)Z(T[A]);return G;function Z(D){P.resolve(D).then(function(ie){O||(O=!0,a.resolve(G,ie))},function(ie){O||(O=!0,a.reject(G,ie))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof Vo<"u"?Vo:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function s(h,w){if(!(h instanceof w))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function c(){try{if(!l||!l.open)return!1;var h=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),w=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!h||w)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(h,w){h=h||[],w=w||{};try{return new Blob(h,w)}catch(_){if(_.name!=="TypeError")throw _;for(var g=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,E=new g,$=0;$<h.length;$+=1)E.append(h[$]);return E.getBlob(w.type)}}typeof Promise>"u"&&n(3);var u=Promise;function d(h,w){w&&h.then(function(g){w(null,g)},function(g){w(g)})}function v(h,w,g){typeof w=="function"&&h.then(w),typeof g=="function"&&h.catch(g)}function p(h){return typeof h!="string"&&(console.warn(h+" used as a key, but it is not a string."),h=String(h)),h}function C(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var S="local-forage-detect-blob-support",x=void 0,R={},B=Object.prototype.toString,k="readonly",T="readwrite";function P(h){for(var w=h.length,g=new ArrayBuffer(w),E=new Uint8Array(g),$=0;$<w;$++)E[$]=h.charCodeAt($);return g}function b(h){return new u(function(w){var g=h.transaction(S,T),E=f([""]);g.objectStore(S).put(E,"key"),g.onabort=function($){$.preventDefault(),$.stopPropagation(),w(!1)},g.oncomplete=function(){var $=navigator.userAgent.match(/Chrome\/(\d+)/),_=navigator.userAgent.match(/Edge\//);w(_||!$||parseInt($[1],10)>=43)}}).catch(function(){return!1})}function O(h){return typeof x=="boolean"?u.resolve(x):b(h).then(function(w){return x=w,x})}function A(h){var w=R[h.name],g={};g.promise=new u(function(E,$){g.resolve=E,g.reject=$}),w.deferredOperations.push(g),w.dbReady?w.dbReady=w.dbReady.then(function(){return g.promise}):w.dbReady=g.promise}function G(h){var w=R[h.name],g=w.deferredOperations.pop();if(g)return g.resolve(),g.promise}function Z(h,w){var g=R[h.name],E=g.deferredOperations.pop();if(E)return E.reject(w),E.promise}function D(h,w){return new u(function(g,E){if(R[h.name]=R[h.name]||Be(),h.db)if(w)A(h),h.db.close();else return g(h.db);var $=[h.name];w&&$.push(h.version);var _=l.open.apply(l,$);w&&(_.onupgradeneeded=function(F){var q=_.result;try{q.createObjectStore(h.storeName),F.oldVersion<=1&&q.createObjectStore(S)}catch(Y){if(Y.name==="ConstraintError")console.warn('The database "'+h.name+'" has been upgraded from version '+F.oldVersion+" to version "+F.newVersion+', but the storage "'+h.storeName+'" already exists.');else throw Y}}),_.onerror=function(F){F.preventDefault(),E(_.error)},_.onsuccess=function(){var F=_.result;F.onversionchange=function(q){q.target.close()},g(F),G(h)}})}function ie(h){return D(h,!1)}function fe(h){return D(h,!0)}function Se(h,w){if(!h.db)return!0;var g=!h.db.objectStoreNames.contains(h.storeName),E=h.version<h.db.version,$=h.version>h.db.version;if(E&&(h.version!==w&&console.warn('The database "'+h.name+`" can't be downgraded from version `+h.db.version+" to version "+h.version+"."),h.version=h.db.version),$||g){if(g){var _=h.db.version+1;_>h.version&&(h.version=_)}return!0}return!1}function de(h){return new u(function(w,g){var E=new FileReader;E.onerror=g,E.onloadend=function($){var _=btoa($.target.result||"");w({__local_forage_encoded_blob:!0,data:_,type:h.type})},E.readAsBinaryString(h)})}function te(h){var w=P(atob(h.data));return f([w],{type:h.type})}function he(h){return h&&h.__local_forage_encoded_blob}function Me(h){var w=this,g=w._initReady().then(function(){var E=R[w._dbInfo.name];if(E&&E.dbReady)return E.dbReady});return v(g,h,h),g}function ke(h){A(h);for(var w=R[h.name],g=w.forages,E=0;E<g.length;E++){var $=g[E];$._dbInfo.db&&($._dbInfo.db.close(),$._dbInfo.db=null)}return h.db=null,ie(h).then(function(_){return h.db=_,Se(h)?fe(h):_}).then(function(_){h.db=w.db=_;for(var F=0;F<g.length;F++)g[F]._dbInfo.db=_}).catch(function(_){throw Z(h,_),_})}function $e(h,w,g,E){E===void 0&&(E=1);try{var $=h.db.transaction(h.storeName,w);g(null,$)}catch(_){if(E>0&&(!h.db||_.name==="InvalidStateError"||_.name==="NotFoundError"))return u.resolve().then(function(){if(!h.db||_.name==="NotFoundError"&&!h.db.objectStoreNames.contains(h.storeName)&&h.version<=h.db.version)return h.db&&(h.version=h.db.version+1),fe(h)}).then(function(){return ke(h).then(function(){$e(h,w,g,E-1)})}).catch(g);g(_)}}function Be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ot(h){var w=this,g={db:null};if(h)for(var E in h)g[E]=h[E];var $=R[g.name];$||($=Be(),R[g.name]=$),$.forages.push(w),w._initReady||(w._initReady=w.ready,w.ready=Me);var _=[];function F(){return u.resolve()}for(var q=0;q<$.forages.length;q++){var Y=$.forages[q];Y!==w&&_.push(Y._initReady().catch(F))}var X=$.forages.slice(0);return u.all(_).then(function(){return g.db=$.db,ie(g)}).then(function(Q){return g.db=Q,Se(g,w._defaultConfig.version)?fe(g):Q}).then(function(Q){g.db=$.db=Q,w._dbInfo=g;for(var ue=0;ue<X.length;ue++){var Pe=X[ue];Pe!==w&&(Pe._dbInfo.db=g.db,Pe._dbInfo.version=g.version)}})}function it(h,w){var g=this;h=p(h);var E=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,k,function(F,q){if(F)return _(F);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.get(h);X.onsuccess=function(){var Q=X.result;Q===void 0&&(Q=null),he(Q)&&(Q=te(Q)),$(Q)},X.onerror=function(){_(X.error)}}catch(Q){_(Q)}})}).catch(_)});return d(E,w),E}function At(h,w){var g=this,E=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,k,function(F,q){if(F)return _(F);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.openCursor(),Q=1;X.onsuccess=function(){var ue=X.result;if(ue){var Pe=ue.value;he(Pe)&&(Pe=te(Pe));var De=h(Pe,ue.key,Q++);De!==void 0?$(De):ue.continue()}else $()},X.onerror=function(){_(X.error)}}catch(ue){_(ue)}})}).catch(_)});return d(E,w),E}function xe(h,w,g){var E=this;h=p(h);var $=new u(function(_,F){var q;E.ready().then(function(){return q=E._dbInfo,B.call(w)==="[object Blob]"?O(q.db).then(function(Y){return Y?w:de(w)}):w}).then(function(Y){$e(E._dbInfo,T,function(X,Q){if(X)return F(X);try{var ue=Q.objectStore(E._dbInfo.storeName);Y===null&&(Y=void 0);var Pe=ue.put(Y,h);Q.oncomplete=function(){Y===void 0&&(Y=null),_(Y)},Q.onabort=Q.onerror=function(){var De=Pe.error?Pe.error:Pe.transaction.error;F(De)}}catch(De){F(De)}})}).catch(F)});return d($,g),$}function z(h,w){var g=this;h=p(h);var E=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,T,function(F,q){if(F)return _(F);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.delete(h);q.oncomplete=function(){$()},q.onerror=function(){_(X.error)},q.onabort=function(){var Q=X.error?X.error:X.transaction.error;_(Q)}}catch(Q){_(Q)}})}).catch(_)});return d(E,w),E}function ne(h){var w=this,g=new u(function(E,$){w.ready().then(function(){$e(w._dbInfo,T,function(_,F){if(_)return $(_);try{var q=F.objectStore(w._dbInfo.storeName),Y=q.clear();F.oncomplete=function(){E()},F.onabort=F.onerror=function(){var X=Y.error?Y.error:Y.transaction.error;$(X)}}catch(X){$(X)}})}).catch($)});return d(g,h),g}function H(h){var w=this,g=new u(function(E,$){w.ready().then(function(){$e(w._dbInfo,k,function(_,F){if(_)return $(_);try{var q=F.objectStore(w._dbInfo.storeName),Y=q.count();Y.onsuccess=function(){E(Y.result)},Y.onerror=function(){$(Y.error)}}catch(X){$(X)}})}).catch($)});return d(g,h),g}function se(h,w){var g=this,E=new u(function($,_){if(h<0){$(null);return}g.ready().then(function(){$e(g._dbInfo,k,function(F,q){if(F)return _(F);try{var Y=q.objectStore(g._dbInfo.storeName),X=!1,Q=Y.openKeyCursor();Q.onsuccess=function(){var ue=Q.result;if(!ue){$(null);return}h===0||X?$(ue.key):(X=!0,ue.advance(h))},Q.onerror=function(){_(Q.error)}}catch(ue){_(ue)}})}).catch(_)});return d(E,w),E}function Re(h){var w=this,g=new u(function(E,$){w.ready().then(function(){$e(w._dbInfo,k,function(_,F){if(_)return $(_);try{var q=F.objectStore(w._dbInfo.storeName),Y=q.openKeyCursor(),X=[];Y.onsuccess=function(){var Q=Y.result;if(!Q){E(X);return}X.push(Q.key),Q.continue()},Y.onerror=function(){$(Y.error)}}catch(Q){$(Q)}})}).catch($)});return d(g,h),g}function Le(h,w){w=C.apply(this,arguments);var g=this.config();h=typeof h!="function"&&h||{},h.name||(h.name=h.name||g.name,h.storeName=h.storeName||g.storeName);var E=this,$;if(!h.name)$=u.reject("Invalid arguments");else{var _=h.name===g.name&&E._dbInfo.db,F=_?u.resolve(E._dbInfo.db):ie(h).then(function(q){var Y=R[h.name],X=Y.forages;Y.db=q;for(var Q=0;Q<X.length;Q++)X[Q]._dbInfo.db=q;return q});h.storeName?$=F.then(function(q){if(q.objectStoreNames.contains(h.storeName)){var Y=q.version+1;A(h);var X=R[h.name],Q=X.forages;q.close();for(var ue=0;ue<Q.length;ue++){var Pe=Q[ue];Pe._dbInfo.db=null,Pe._dbInfo.version=Y}var De=new u(function(He,tt){var et=l.open(h.name,Y);et.onerror=function(Bt){var Er=et.result;Er.close(),tt(Bt)},et.onupgradeneeded=function(){var Bt=et.result;Bt.deleteObjectStore(h.storeName)},et.onsuccess=function(){var Bt=et.result;Bt.close(),He(Bt)}});return De.then(function(He){X.db=He;for(var tt=0;tt<Q.length;tt++){var et=Q[tt];et._dbInfo.db=He,G(et._dbInfo)}}).catch(function(He){throw(Z(h,He)||u.resolve()).catch(function(){}),He})}}):$=F.then(function(q){A(h);var Y=R[h.name],X=Y.forages;q.close();for(var Q=0;Q<X.length;Q++){var ue=X[Q];ue._dbInfo.db=null}var Pe=new u(function(De,He){var tt=l.deleteDatabase(h.name);tt.onerror=function(){var et=tt.result;et&&et.close(),He(tt.error)},tt.onblocked=function(){console.warn('dropInstance blocked for database "'+h.name+'" until all open connections are closed')},tt.onsuccess=function(){var et=tt.result;et&&et.close(),De(et)}});return Pe.then(function(De){Y.db=De;for(var He=0;He<X.length;He++){var tt=X[He];G(tt._dbInfo)}}).catch(function(De){throw(Z(h,De)||u.resolve()).catch(function(){}),De})})}return d($,w),$}var m={_driver:"asyncStorage",_initStorage:ot,_support:c(),iterate:At,getItem:it,setItem:xe,removeItem:z,clear:ne,length:H,key:se,keys:Re,dropInstance:Le};function y(){return typeof openDatabase=="function"}var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N="~~local_forage_type~",M=/^~~local_forage_type~([^~]+)~/,W="__lfsc__:",ee=W.length,j="arbf",V="blob",U="si08",pe="ui08",re="uic8",ae="si16",ge="si32",Te="ur16",Ae="ui32",Oe="fl32",at="fl64",Ze=ee+j.length,lt=Object.prototype.toString;function st(h){var w=h.length*.75,g=h.length,E,$=0,_,F,q,Y;h[h.length-1]==="="&&(w--,h[h.length-2]==="="&&w--);var X=new ArrayBuffer(w),Q=new Uint8Array(X);for(E=0;E<g;E+=4)_=I.indexOf(h[E]),F=I.indexOf(h[E+1]),q=I.indexOf(h[E+2]),Y=I.indexOf(h[E+3]),Q[$++]=_<<2|F>>4,Q[$++]=(F&15)<<4|q>>2,Q[$++]=(q&3)<<6|Y&63;return X}function pt(h){var w=new Uint8Array(h),g="",E;for(E=0;E<w.length;E+=3)g+=I[w[E]>>2],g+=I[(w[E]&3)<<4|w[E+1]>>4],g+=I[(w[E+1]&15)<<2|w[E+2]>>6],g+=I[w[E+2]&63];return w.length%3===2?g=g.substring(0,g.length-1)+"=":w.length%3===1&&(g=g.substring(0,g.length-2)+"=="),g}function Sr(h,w){var g="";if(h&&(g=lt.call(h)),h&&(g==="[object ArrayBuffer]"||h.buffer&&lt.call(h.buffer)==="[object ArrayBuffer]")){var E,$=W;h instanceof ArrayBuffer?(E=h,$+=j):(E=h.buffer,g==="[object Int8Array]"?$+=U:g==="[object Uint8Array]"?$+=pe:g==="[object Uint8ClampedArray]"?$+=re:g==="[object Int16Array]"?$+=ae:g==="[object Uint16Array]"?$+=Te:g==="[object Int32Array]"?$+=ge:g==="[object Uint32Array]"?$+=Ae:g==="[object Float32Array]"?$+=Oe:g==="[object Float64Array]"?$+=at:w(new Error("Failed to get type for BinaryArray"))),w($+pt(E))}else if(g==="[object Blob]"){var _=new FileReader;_.onload=function(){var F=N+h.type+"~"+pt(this.result);w(W+V+F)},_.readAsArrayBuffer(h)}else try{w(JSON.stringify(h))}catch(F){console.error("Couldn't convert value into a JSON string: ",h),w(null,F)}}function K(h){if(h.substring(0,ee)!==W)return JSON.parse(h);var w=h.substring(Ze),g=h.substring(ee,Ze),E;if(g===V&&M.test(w)){var $=w.match(M);E=$[1],w=w.substring($[0].length)}var _=st(w);switch(g){case j:return _;case V:return f([_],{type:E});case U:return new Int8Array(_);case pe:return new Uint8Array(_);case re:return new Uint8ClampedArray(_);case ae:return new Int16Array(_);case Te:return new Uint16Array(_);case ge:return new Int32Array(_);case Ae:return new Uint32Array(_);case Oe:return new Float32Array(_);case at:return new Float64Array(_);default:throw new Error("Unkown type: "+g)}}var oe={serialize:Sr,deserialize:K,stringToBuffer:st,bufferToString:pt};function me(h,w,g,E){h.executeSql("CREATE TABLE IF NOT EXISTS "+w.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],g,E)}function We(h){var w=this,g={db:null};if(h)for(var E in h)g[E]=typeof h[E]!="string"?h[E].toString():h[E];var $=new u(function(_,F){try{g.db=openDatabase(g.name,String(g.version),g.description,g.size)}catch(q){return F(q)}g.db.transaction(function(q){me(q,g,function(){w._dbInfo=g,_()},function(Y,X){F(X)})},F)});return g.serializer=oe,$}function je(h,w,g,E,$,_){h.executeSql(g,E,$,function(F,q){q.code===q.SYNTAX_ERR?F.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[w.storeName],function(Y,X){X.rows.length?_(Y,q):me(Y,w,function(){Y.executeSql(g,E,$,_)},_)},_):_(F,q)},_)}function vt(h,w){var g=this;h=p(h);var E=new u(function($,_){g.ready().then(function(){var F=g._dbInfo;F.db.transaction(function(q){je(q,F,"SELECT * FROM "+F.storeName+" WHERE key = ? LIMIT 1",[h],function(Y,X){var Q=X.rows.length?X.rows.item(0).value:null;Q&&(Q=F.serializer.deserialize(Q)),$(Q)},function(Y,X){_(X)})})}).catch(_)});return d(E,w),E}function Pt(h,w){var g=this,E=new u(function($,_){g.ready().then(function(){var F=g._dbInfo;F.db.transaction(function(q){je(q,F,"SELECT * FROM "+F.storeName,[],function(Y,X){for(var Q=X.rows,ue=Q.length,Pe=0;Pe<ue;Pe++){var De=Q.item(Pe),He=De.value;if(He&&(He=F.serializer.deserialize(He)),He=h(He,De.key,Pe+1),He!==void 0){$(He);return}}$()},function(Y,X){_(X)})})}).catch(_)});return d(E,w),E}function Ve(h,w,g,E){var $=this;h=p(h);var _=new u(function(F,q){$.ready().then(function(){w===void 0&&(w=null);var Y=w,X=$._dbInfo;X.serializer.serialize(w,function(Q,ue){ue?q(ue):X.db.transaction(function(Pe){je(Pe,X,"INSERT OR REPLACE INTO "+X.storeName+" (key, value) VALUES (?, ?)",[h,Q],function(){F(Y)},function(De,He){q(He)})},function(Pe){if(Pe.code===Pe.QUOTA_ERR){if(E>0){F(Ve.apply($,[h,Y,g,E-1]));return}q(Pe)}})})}).catch(q)});return d(_,g),_}function $t(h,w,g){return Ve.apply(this,[h,w,g,1])}function En(h,w){var g=this;h=p(h);var E=new u(function($,_){g.ready().then(function(){var F=g._dbInfo;F.db.transaction(function(q){je(q,F,"DELETE FROM "+F.storeName+" WHERE key = ?",[h],function(){$()},function(Y,X){_(X)})})}).catch(_)});return d(E,w),E}function jd(h){var w=this,g=new u(function(E,$){w.ready().then(function(){var _=w._dbInfo;_.db.transaction(function(F){je(F,_,"DELETE FROM "+_.storeName,[],function(){E()},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Wd(h){var w=this,g=new u(function(E,$){w.ready().then(function(){var _=w._dbInfo;_.db.transaction(function(F){je(F,_,"SELECT COUNT(key) as c FROM "+_.storeName,[],function(q,Y){var X=Y.rows.item(0).c;E(X)},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Vd(h,w){var g=this,E=new u(function($,_){g.ready().then(function(){var F=g._dbInfo;F.db.transaction(function(q){je(q,F,"SELECT key FROM "+F.storeName+" WHERE id = ? LIMIT 1",[h+1],function(Y,X){var Q=X.rows.length?X.rows.item(0).key:null;$(Q)},function(Y,X){_(X)})})}).catch(_)});return d(E,w),E}function Ud(h){var w=this,g=new u(function(E,$){w.ready().then(function(){var _=w._dbInfo;_.db.transaction(function(F){je(F,_,"SELECT key FROM "+_.storeName,[],function(q,Y){for(var X=[],Q=0;Q<Y.rows.length;Q++)X.push(Y.rows.item(Q).key);E(X)},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Kd(h){return new u(function(w,g){h.transaction(function(E){E.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function($,_){for(var F=[],q=0;q<_.rows.length;q++)F.push(_.rows.item(q).name);w({db:h,storeNames:F})},function($,_){g(_)})},function(E){g(E)})})}function Gd(h,w){w=C.apply(this,arguments);var g=this.config();h=typeof h!="function"&&h||{},h.name||(h.name=h.name||g.name,h.storeName=h.storeName||g.storeName);var E=this,$;return h.name?$=new u(function(_){var F;h.name===g.name?F=E._dbInfo.db:F=openDatabase(h.name,"","",0),h.storeName?_({db:F,storeNames:[h.storeName]}):_(Kd(F))}).then(function(_){return new u(function(F,q){_.db.transaction(function(Y){function X(De){return new u(function(He,tt){Y.executeSql("DROP TABLE IF EXISTS "+De,[],function(){He()},function(et,Bt){tt(Bt)})})}for(var Q=[],ue=0,Pe=_.storeNames.length;ue<Pe;ue++)Q.push(X(_.storeNames[ue]));u.all(Q).then(function(){F()}).catch(function(De){q(De)})},function(Y){q(Y)})})}):$=u.reject("Invalid arguments"),d($,w),$}var qd={_driver:"webSQLStorage",_initStorage:We,_support:y(),iterate:Pt,getItem:vt,setItem:$t,removeItem:En,clear:jd,length:Wd,key:Vd,keys:Ud,dropInstance:Gd};function Yd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function ka(h,w){var g=h.name+"/";return h.storeName!==w.storeName&&(g+=h.storeName+"/"),g}function Xd(){var h="_localforage_support_test";try{return localStorage.setItem(h,!0),localStorage.removeItem(h),!1}catch{return!0}}function Zd(){return!Xd()||localStorage.length>0}function Qd(h){var w=this,g={};if(h)for(var E in h)g[E]=h[E];return g.keyPrefix=ka(h,w._defaultConfig),Zd()?(w._dbInfo=g,g.serializer=oe,u.resolve()):u.reject()}function Jd(h){var w=this,g=w.ready().then(function(){for(var E=w._dbInfo.keyPrefix,$=localStorage.length-1;$>=0;$--){var _=localStorage.key($);_.indexOf(E)===0&&localStorage.removeItem(_)}});return d(g,h),g}function eh(h,w){var g=this;h=p(h);var E=g.ready().then(function(){var $=g._dbInfo,_=localStorage.getItem($.keyPrefix+h);return _&&(_=$.serializer.deserialize(_)),_});return d(E,w),E}function th(h,w){var g=this,E=g.ready().then(function(){for(var $=g._dbInfo,_=$.keyPrefix,F=_.length,q=localStorage.length,Y=1,X=0;X<q;X++){var Q=localStorage.key(X);if(Q.indexOf(_)===0){var ue=localStorage.getItem(Q);if(ue&&(ue=$.serializer.deserialize(ue)),ue=h(ue,Q.substring(F),Y++),ue!==void 0)return ue}}});return d(E,w),E}function nh(h,w){var g=this,E=g.ready().then(function(){var $=g._dbInfo,_;try{_=localStorage.key(h)}catch{_=null}return _&&(_=_.substring($.keyPrefix.length)),_});return d(E,w),E}function rh(h){var w=this,g=w.ready().then(function(){for(var E=w._dbInfo,$=localStorage.length,_=[],F=0;F<$;F++){var q=localStorage.key(F);q.indexOf(E.keyPrefix)===0&&_.push(q.substring(E.keyPrefix.length))}return _});return d(g,h),g}function oh(h){var w=this,g=w.keys().then(function(E){return E.length});return d(g,h),g}function ih(h,w){var g=this;h=p(h);var E=g.ready().then(function(){var $=g._dbInfo;localStorage.removeItem($.keyPrefix+h)});return d(E,w),E}function sh(h,w,g){var E=this;h=p(h);var $=E.ready().then(function(){w===void 0&&(w=null);var _=w;return new u(function(F,q){var Y=E._dbInfo;Y.serializer.serialize(w,function(X,Q){if(Q)q(Q);else try{localStorage.setItem(Y.keyPrefix+h,X),F(_)}catch(ue){(ue.name==="QuotaExceededError"||ue.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q(ue),q(ue)}})})});return d($,g),$}function ah(h,w){if(w=C.apply(this,arguments),h=typeof h!="function"&&h||{},!h.name){var g=this.config();h.name=h.name||g.name,h.storeName=h.storeName||g.storeName}var E=this,$;return h.name?$=new u(function(_){h.storeName?_(ka(h,E._defaultConfig)):_(h.name+"/")}).then(function(_){for(var F=localStorage.length-1;F>=0;F--){var q=localStorage.key(F);q.indexOf(_)===0&&localStorage.removeItem(q)}}):$=u.reject("Invalid arguments"),d($,w),$}var lh={_driver:"localStorageWrapper",_initStorage:Qd,_support:Yd(),iterate:th,getItem:eh,setItem:sh,removeItem:ih,clear:Jd,length:oh,key:nh,keys:rh,dropInstance:ah},ch=function(w,g){return w===g||typeof w=="number"&&typeof g=="number"&&isNaN(w)&&isNaN(g)},uh=function(w,g){for(var E=w.length,$=0;$<E;){if(ch(w[$],g))return!0;$++}return!1},Aa=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},_r={},Ba={},Kn={INDEXEDDB:m,WEBSQL:qd,LOCALSTORAGE:lh},fh=[Kn.INDEXEDDB._driver,Kn.WEBSQL._driver,Kn.LOCALSTORAGE._driver],Ro=["dropInstance"],Bi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Ro),dh={description:"",driver:fh.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function hh(h,w){h[w]=function(){var g=arguments;return h.ready().then(function(){return h[w].apply(h,g)})}}function zi(){for(var h=1;h<arguments.length;h++){var w=arguments[h];if(w)for(var g in w)w.hasOwnProperty(g)&&(Aa(w[g])?arguments[0][g]=w[g].slice():arguments[0][g]=w[g])}return arguments[0]}var ph=function(){function h(w){s(this,h);for(var g in Kn)if(Kn.hasOwnProperty(g)){var E=Kn[g],$=E._driver;this[g]=$,_r[$]||this.defineDriver(E)}this._defaultConfig=zi({},dh),this._config=zi({},this._defaultConfig,w),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return h.prototype.config=function(g){if((typeof g>"u"?"undefined":i(g))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var E in g){if(E==="storeName"&&(g[E]=g[E].replace(/\W/g,"_")),E==="version"&&typeof g[E]!="number")return new Error("Database version must be a number.");this._config[E]=g[E]}return"driver"in g&&g.driver?this.setDriver(this._config.driver):!0}else return typeof g=="string"?this._config[g]:this._config},h.prototype.defineDriver=function(g,E,$){var _=new u(function(F,q){try{var Y=g._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!g._driver){q(X);return}for(var Q=Bi.concat("_initStorage"),ue=0,Pe=Q.length;ue<Pe;ue++){var De=Q[ue],He=!uh(Ro,De);if((He||g[De])&&typeof g[De]!="function"){q(X);return}}var tt=function(){for(var Er=function(mh){return function(){var bh=new Error("Method "+mh+" is not implemented by the current driver"),za=u.reject(bh);return d(za,arguments[arguments.length-1]),za}},Mi=0,gh=Ro.length;Mi<gh;Mi++){var Di=Ro[Mi];g[Di]||(g[Di]=Er(Di))}};tt();var et=function(Er){_r[Y]&&console.info("Redefining LocalForage driver: "+Y),_r[Y]=g,Ba[Y]=Er,F()};"_support"in g?g._support&&typeof g._support=="function"?g._support().then(et,q):et(!!g._support):et(!0)}catch(Bt){q(Bt)}});return v(_,E,$),_},h.prototype.driver=function(){return this._driver||null},h.prototype.getDriver=function(g,E,$){var _=_r[g]?u.resolve(_r[g]):u.reject(new Error("Driver not found."));return v(_,E,$),_},h.prototype.getSerializer=function(g){var E=u.resolve(oe);return v(E,g),E},h.prototype.ready=function(g){var E=this,$=E._driverSet.then(function(){return E._ready===null&&(E._ready=E._initDriver()),E._ready});return v($,g,g),$},h.prototype.setDriver=function(g,E,$){var _=this;Aa(g)||(g=[g]);var F=this._getSupportedDrivers(g);function q(){_._config.driver=_.driver()}function Y(ue){return _._extend(ue),q(),_._ready=_._initStorage(_._config),_._ready}function X(ue){return function(){var Pe=0;function De(){for(;Pe<ue.length;){var He=ue[Pe];return Pe++,_._dbInfo=null,_._ready=null,_.getDriver(He).then(Y).catch(De)}q();var tt=new Error("No available storage method found.");return _._driverSet=u.reject(tt),_._driverSet}return De()}}var Q=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=Q.then(function(){var ue=F[0];return _._dbInfo=null,_._ready=null,_.getDriver(ue).then(function(Pe){_._driver=Pe._driver,q(),_._wrapLibraryMethodsWithReady(),_._initDriver=X(F)})}).catch(function(){q();var ue=new Error("No available storage method found.");return _._driverSet=u.reject(ue),_._driverSet}),v(this._driverSet,E,$),this._driverSet},h.prototype.supports=function(g){return!!Ba[g]},h.prototype._extend=function(g){zi(this,g)},h.prototype._getSupportedDrivers=function(g){for(var E=[],$=0,_=g.length;$<_;$++){var F=g[$];this.supports(F)&&E.push(F)}return E},h.prototype._wrapLibraryMethodsWithReady=function(){for(var g=0,E=Bi.length;g<E;g++)hh(this,Bi[g])},h.prototype.createInstance=function(g){return new h(g)},h}(),vh=new ph;r.exports=vh},{3:3}]},{},[4])(4)})})(zd);var zw=zd.exports;const ui=y1(zw),Mw=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com","https://detect.gkd.li"]),CC=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:Mw.has(e.origin)),Dw=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],Md=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of Dw){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},SC=e=>location.origin+`/i/${e}`,Fw=e=>`https://github.com/user-attachments/files/${e}/file.zip`,Lw=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/([0-9]+)\/([0-9a-z-]+)$/,Nc="https://github.com/user-attachments/assets/",_C=e=>{if(e.startsWith(Nc))return"https://e.gkd.li/"+e.substring(Nc.length);const{1:t,2:n}=e.match(Lw)||[];return t&&n?`https://m.gkd.li/${t}/${n}`:(console.error(`github url ${e} should come from gkd-kit/inspect files/assets`),e)},EC=e=>{try{return new URL(e)}catch{}},Ai=(e={})=>{var l;(l=e.driver)!=null||(e.driver=ui.INDEXEDDB);const t=ui.createInstance(e);return{keys:async()=>t.keys(),hasItem:async c=>{const f=c.toString();return t.keys().then(u=>u.includes(f))},getItem:async c=>t.getItem(c.toString()),setItem:async(c,f)=>t.setItem(c.toString(),f),removeItem:async c=>t.removeItem(c.toString()),getAllItems:async()=>Promise.all((await t.keys()).map(c=>t.getItem(c)))}},Ia=[],_o=(e,t,n)=>{const r=ho(t);let o=!1;Lt(r,async()=>{o&&await ui.setItem(e,Ie(r))});const i=ui.getItem(e).then(s=>{s&&(n&&(s=n(s)),Object.assign(r,s)),o=!0});return Ia.push(i),r},Eo=Ai({name:"snapshot",version:1}),Hw=Eo.setItem;Eo.setItem=async(e,t)=>{const n={...t,nodes:[]};return await Dd.setItem(e,n),Hw(e,t)};const Nw=Eo.removeItem;Eo.removeItem=async e=>{await Promise.all([Nw(e),Dd.removeItem(e),Fd.removeItem(e),Hs[e]&&delete Hs[e]])};const Dd=Ai({name:"shallowSnapshot",version:1}),Fd=Ai({name:"screenshot",version:1}),RC=async(e,t)=>{Object.entries(fi).forEach(([n,r])=>{r==e.id&&delete fi[n]}),jc[e.id]&&delete jc[e.id],di[e.id]&&delete di[e.id],Hs[e.id]=Date.now(),await Promise.all([Eo.setItem(e.id,e),Fd.setItem(e.id,t)])};Ai({name:"cache",version:1});const Ld=e=>typeof e=="number"?!0:e?Array.prototype.every.call(e,t=>"0"<=t&&t<="9"):!1,fi=_o("url",{},e=>(Object.keys(e).forEach(t=>{if(Ld(t))return;const n=Md(t);n&&(e[n]=e[t]),delete e[t]}),e)),Hs=_o("importTime",{}),jc=_o("githubJpg",{}),di=_o("githubZip",{},e=>(Object.entries(e).forEach(([t,n])=>{const r=n;if(Ld(r))return;const o=Md(r);o?e[t]=+o:delete e[t]}),e)),Wc=_o("settings",{autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1}),Vc="snapshots-cache-version",us="v2";localStorage.getItem(Vc)!==us&&(localStorage.setItem(Vc,us),Promise.all(Ia).then(async()=>{(await(await fetch(`https://registry.npmmirror.com/@gkd-kit/assets/latest/files/assets/snapshots-${us}.json`)).json()).forEach(n=>{di[n.id]||(di[n.id]=n.import_id),fi[n.import_id]||(fi[n.import_id]=n.id)})}));const Qn=Qs({networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0}),jw=Xe({__name:"ErrorDlg",setup(e){return(t,n)=>{const r=A1,o=g1;return to(),sv(nt,null,[qe(r,{show:ft(Qn).githubErrorDlgVisible,"onUpdate:show":n[0]||(n[0]=i=>ft(Qn).githubErrorDlgVisible=i),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:tr(()=>n[4]||(n[4]=[mt("div",null,"生成分享链接需要以下条件",-1),mt("div",null,[Ht(" 在当前浏览器登录 "),mt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),qe(r,{show:ft(Qn).networkErrorDlgVisible,"onUpdate:show":n[1]||(n[1]=i=>ft(Qn).networkErrorDlgVisible=i),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:tr(()=>n[5]||(n[5]=[mt("div",null,"访问其它域名资源需要以下条件",-1),mt("div",null,[Ht(" 1. 安装脚本管理器, 如 "),mt("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),mt("div",null,[Ht(" 2. 安装油猴脚本 "),mt("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),mt("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),mt("div",null,[Ht(" 4. 如果是分享链接则需要在当前浏览器登录 "),mt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),qe(r,{show:ft(Qn).wasmErrorDlgVisible,"onUpdate:show":n[3]||(n[3]=i=>ft(Qn).wasmErrorDlgVisible=i),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:tr(()=>[n[7]||(n[7]=mt("div",null,[Ht(" 选择器的正则表达式一致性需要使用 "),mt("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),n[8]||(n[8]=mt("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),qe(o,{class:"mt-10px",checked:ft(Wc).ignoreWasmWarn,"onUpdate:checked":n[2]||(n[2]=i=>ft(Wc).ignoreWasmWarn=i)},{default:tr(()=>n[6]||(n[6]=[Ht(" 不关注一致性, 不再提醒 ")])),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),Ww=Xe({__name:"App",setup(e){return(t,n)=>{const r=b1;return to(),ti(r,{locale:ft(jy),"date-locale":ft(Tx),abstract:""},{default:tr(()=>[qe(jw),qe(ft(Bd))]),_:1},8,["locale","date-locale"])}}}),Vw="modulepreload",Uw=function(e,t){return new URL(e,t).href},Uc={},pn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=Uw(c,r),c in Uc)return;Uc[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const C=s[p];if(C.href===c&&(!f||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":Vw,f||(v.as="script"),v.crossOrigin="",v.href=c,l&&v.setAttribute("nonce",l),document.head.appendChild(v),f)return new Promise((p,C)=>{v.addEventListener("load",p),v.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},Kc=(e,t)=>{try{return new URL(e,t)}catch{}},Gc=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:Fw(t)}}:{path:"/404"}},Hd=Aw({history:uw("/"),routes:[{path:"/",component:()=>pn(()=>import("./HomePage-9rLah5Wp.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{path:"/snapshot/:snapshotId",name:"snapshot",component:()=>pn(()=>import("./SnapshotPage-Bg4c8Oph.js"),__vite__mapDeps([9,1,2,3,4,5,6,10,11]),import.meta.url)},{path:"/i",component:()=>pn(()=>import("./ImportPage-Dk5VjEU_.js"),__vite__mapDeps([12,2,4,5,7]),import.meta.url)},{path:"/i/:github_asset_id",redirect:Gc},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Gc},{path:"/device",component:()=>pn(()=>import("./DevicePage-99_3J34X.js"),__vite__mapDeps([13,2,11,8,3,6,5,10]),import.meta.url),beforeEnter(e,t,n){const r=Kc(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()}},{path:"/s",component:()=>pn(()=>import("./PreviewSharePage-2K9o878c.js"),__vite__mapDeps([14,2,10,3]),import.meta.url),beforeEnter(e,t,n){return e.query.url&&Kc(String(e.query.url))?n():n({path:"/404"})}},{path:"/s/:github_asset_id",component:()=>pn(()=>import("./PreviewSharePage-2K9o878c.js"),__vite__mapDeps([14,2,10,3]),import.meta.url),beforeEnter(e,t,n){var o;const r=(o=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:o[0];return r?e.params.github_asset_id===r?n():n("/s/"+r):n({path:"/404"})}},{path:"/selector",component:()=>pn(()=>import("./SelectorPage-B_7oLClp.js"),[],import.meta.url)},{path:"/:pathMatch(.*)*",component:()=>pn(()=>import("./_404Page-B2M4OTwT.js"),[],import.meta.url)}]}),Kw={hash:"09d088d592858208726a8284ababebb614c691e4",date:"2024-09-13T19:40:08+08:00",message:"chore: update dependency",refs:"grafted, HEAD -> main, origin/main",body:"",author_name:"lisonge",author_email:"i@songe.li"},Gw=`GIT commit
558
+ */(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function s(c,f){if(!o[c]){if(!r[c]){var u=typeof Uo=="function"&&Uo;if(!f&&u)return u(c,!0);if(a)return a(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var v=o[c]={exports:{}};r[c][0].call(v.exports,function(p){var C=r[c][1][p];return s(C||p)},v,v.exports,n,r,o,i)}return o[c].exports}for(var a=typeof Uo=="function"&&Uo,l=0;l<i.length;l++)s(i[l]);return s}({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,c=new s(p),f=i.document.createTextNode("");c.observe(f,{characterData:!0}),a=function(){f.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var u=new i.MessageChannel;u.port1.onmessage=p,a=function(){u.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var S=i.document.createElement("script");S.onreadystatechange=function(){p(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},i.document.documentElement.appendChild(S)}:a=function(){setTimeout(p,0)};var d,v=[];function p(){d=!0;for(var S,x,R=v.length;R;){for(x=v,v=[],S=-1;++S<R;)x[S]();R=v.length}d=!1}r.exports=C;function C(S){v.push(S)===1&&!d&&a()}}).call(this,typeof Vo<"u"?Vo:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],f=["PENDING"];r.exports=u;function u(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,T!==s&&C(this,T)}u.prototype.catch=function(T){return this.then(null,T)},u.prototype.then=function(T,P){if(typeof T!="function"&&this.state===c||typeof P!="function"&&this.state===l)return this;var b=new this.constructor(s);if(this.state!==f){var O=this.state===c?T:P;v(b,O,this.outcome)}else this.queue.push(new d(b,T,P));return b};function d(T,P,b){this.promise=T,typeof P=="function"&&(this.onFulfilled=P,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(T){a.resolve(this.promise,T)},d.prototype.otherCallFulfilled=function(T){v(this.promise,this.onFulfilled,T)},d.prototype.callRejected=function(T){a.reject(this.promise,T)},d.prototype.otherCallRejected=function(T){v(this.promise,this.onRejected,T)};function v(T,P,b){i(function(){var O;try{O=P(b)}catch(A){return a.reject(T,A)}O===T?a.reject(T,new TypeError("Cannot resolve promise with itself")):a.resolve(T,O)})}a.resolve=function(T,P){var b=S(p,P);if(b.status==="error")return a.reject(T,b.value);var O=b.value;if(O)C(T,O);else{T.state=c,T.outcome=P;for(var A=-1,G=T.queue.length;++A<G;)T.queue[A].callFulfilled(P)}return T},a.reject=function(T,P){T.state=l,T.outcome=P;for(var b=-1,O=T.queue.length;++b<O;)T.queue[b].callRejected(P);return T};function p(T){var P=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof P=="function")return function(){P.apply(T,arguments)}}function C(T,P){var b=!1;function O(D){b||(b=!0,a.reject(T,D))}function A(D){b||(b=!0,a.resolve(T,D))}function G(){P(A,O)}var Z=S(G);Z.status==="error"&&O(Z.value)}function S(T,P){var b={};try{b.value=T(P),b.status="success"}catch(O){b.status="error",b.value=O}return b}u.resolve=x;function x(T){return T instanceof this?T:a.resolve(new this(s),T)}u.reject=R;function R(T){var P=new this(s);return a.reject(P,T)}u.all=B;function B(T){var P=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=T.length,O=!1;if(!b)return this.resolve([]);for(var A=new Array(b),G=0,Z=-1,D=new this(s);++Z<b;)ie(T[Z],Z);return D;function ie(fe,Se){P.resolve(fe).then(de,function(te){O||(O=!0,a.reject(D,te))});function de(te){A[Se]=te,++G===b&&!O&&(O=!0,a.resolve(D,A))}}}u.race=k;function k(T){var P=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=T.length,O=!1;if(!b)return this.resolve([]);for(var A=-1,G=new this(s);++A<b;)Z(T[A]);return G;function Z(D){P.resolve(D).then(function(ie){O||(O=!0,a.resolve(G,ie))},function(ie){O||(O=!0,a.reject(G,ie))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof Vo<"u"?Vo:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h};function s(h,w){if(!(h instanceof w))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function c(){try{if(!l||!l.open)return!1;var h=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),w=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!h||w)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(h,w){h=h||[],w=w||{};try{return new Blob(h,w)}catch(_){if(_.name!=="TypeError")throw _;for(var g=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,E=new g,$=0;$<h.length;$+=1)E.append(h[$]);return E.getBlob(w.type)}}typeof Promise>"u"&&n(3);var u=Promise;function d(h,w){w&&h.then(function(g){w(null,g)},function(g){w(g)})}function v(h,w,g){typeof w=="function"&&h.then(w),typeof g=="function"&&h.catch(g)}function p(h){return typeof h!="string"&&(console.warn(h+" used as a key, but it is not a string."),h=String(h)),h}function C(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var S="local-forage-detect-blob-support",x=void 0,R={},B=Object.prototype.toString,k="readonly",T="readwrite";function P(h){for(var w=h.length,g=new ArrayBuffer(w),E=new Uint8Array(g),$=0;$<w;$++)E[$]=h.charCodeAt($);return g}function b(h){return new u(function(w){var g=h.transaction(S,T),E=f([""]);g.objectStore(S).put(E,"key"),g.onabort=function($){$.preventDefault(),$.stopPropagation(),w(!1)},g.oncomplete=function(){var $=navigator.userAgent.match(/Chrome\/(\d+)/),_=navigator.userAgent.match(/Edge\//);w(_||!$||parseInt($[1],10)>=43)}}).catch(function(){return!1})}function O(h){return typeof x=="boolean"?u.resolve(x):b(h).then(function(w){return x=w,x})}function A(h){var w=R[h.name],g={};g.promise=new u(function(E,$){g.resolve=E,g.reject=$}),w.deferredOperations.push(g),w.dbReady?w.dbReady=w.dbReady.then(function(){return g.promise}):w.dbReady=g.promise}function G(h){var w=R[h.name],g=w.deferredOperations.pop();if(g)return g.resolve(),g.promise}function Z(h,w){var g=R[h.name],E=g.deferredOperations.pop();if(E)return E.reject(w),E.promise}function D(h,w){return new u(function(g,E){if(R[h.name]=R[h.name]||Be(),h.db)if(w)A(h),h.db.close();else return g(h.db);var $=[h.name];w&&$.push(h.version);var _=l.open.apply(l,$);w&&(_.onupgradeneeded=function(F){var q=_.result;try{q.createObjectStore(h.storeName),F.oldVersion<=1&&q.createObjectStore(S)}catch(Y){if(Y.name==="ConstraintError")console.warn('The database "'+h.name+'" has been upgraded from version '+F.oldVersion+" to version "+F.newVersion+', but the storage "'+h.storeName+'" already exists.');else throw Y}}),_.onerror=function(F){F.preventDefault(),E(_.error)},_.onsuccess=function(){var F=_.result;F.onversionchange=function(q){q.target.close()},g(F),G(h)}})}function ie(h){return D(h,!1)}function fe(h){return D(h,!0)}function Se(h,w){if(!h.db)return!0;var g=!h.db.objectStoreNames.contains(h.storeName),E=h.version<h.db.version,$=h.version>h.db.version;if(E&&(h.version!==w&&console.warn('The database "'+h.name+`" can't be downgraded from version `+h.db.version+" to version "+h.version+"."),h.version=h.db.version),$||g){if(g){var _=h.db.version+1;_>h.version&&(h.version=_)}return!0}return!1}function de(h){return new u(function(w,g){var E=new FileReader;E.onerror=g,E.onloadend=function($){var _=btoa($.target.result||"");w({__local_forage_encoded_blob:!0,data:_,type:h.type})},E.readAsBinaryString(h)})}function te(h){var w=P(atob(h.data));return f([w],{type:h.type})}function he(h){return h&&h.__local_forage_encoded_blob}function Me(h){var w=this,g=w._initReady().then(function(){var E=R[w._dbInfo.name];if(E&&E.dbReady)return E.dbReady});return v(g,h,h),g}function ke(h){A(h);for(var w=R[h.name],g=w.forages,E=0;E<g.length;E++){var $=g[E];$._dbInfo.db&&($._dbInfo.db.close(),$._dbInfo.db=null)}return h.db=null,ie(h).then(function(_){return h.db=_,Se(h)?fe(h):_}).then(function(_){h.db=w.db=_;for(var F=0;F<g.length;F++)g[F]._dbInfo.db=_}).catch(function(_){throw Z(h,_),_})}function $e(h,w,g,E){E===void 0&&(E=1);try{var $=h.db.transaction(h.storeName,w);g(null,$)}catch(_){if(E>0&&(!h.db||_.name==="InvalidStateError"||_.name==="NotFoundError"))return u.resolve().then(function(){if(!h.db||_.name==="NotFoundError"&&!h.db.objectStoreNames.contains(h.storeName)&&h.version<=h.db.version)return h.db&&(h.version=h.db.version+1),fe(h)}).then(function(){return ke(h).then(function(){$e(h,w,g,E-1)})}).catch(g);g(_)}}function Be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ot(h){var w=this,g={db:null};if(h)for(var E in h)g[E]=h[E];var $=R[g.name];$||($=Be(),R[g.name]=$),$.forages.push(w),w._initReady||(w._initReady=w.ready,w.ready=Me);var _=[];function F(){return u.resolve()}for(var q=0;q<$.forages.length;q++){var Y=$.forages[q];Y!==w&&_.push(Y._initReady().catch(F))}var X=$.forages.slice(0);return u.all(_).then(function(){return g.db=$.db,ie(g)}).then(function(Q){return g.db=Q,Se(g,w._defaultConfig.version)?fe(g):Q}).then(function(Q){g.db=$.db=Q,w._dbInfo=g;for(var ue=0;ue<X.length;ue++){var Pe=X[ue];Pe!==w&&(Pe._dbInfo.db=g.db,Pe._dbInfo.version=g.version)}})}function it(h,w){var g=this;h=p(h);var E=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,k,function(F,q){if(F)return _(F);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.get(h);X.onsuccess=function(){var Q=X.result;Q===void 0&&(Q=null),he(Q)&&(Q=te(Q)),$(Q)},X.onerror=function(){_(X.error)}}catch(Q){_(Q)}})}).catch(_)});return d(E,w),E}function At(h,w){var g=this,E=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,k,function(F,q){if(F)return _(F);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.openCursor(),Q=1;X.onsuccess=function(){var ue=X.result;if(ue){var Pe=ue.value;he(Pe)&&(Pe=te(Pe));var De=h(Pe,ue.key,Q++);De!==void 0?$(De):ue.continue()}else $()},X.onerror=function(){_(X.error)}}catch(ue){_(ue)}})}).catch(_)});return d(E,w),E}function xe(h,w,g){var E=this;h=p(h);var $=new u(function(_,F){var q;E.ready().then(function(){return q=E._dbInfo,B.call(w)==="[object Blob]"?O(q.db).then(function(Y){return Y?w:de(w)}):w}).then(function(Y){$e(E._dbInfo,T,function(X,Q){if(X)return F(X);try{var ue=Q.objectStore(E._dbInfo.storeName);Y===null&&(Y=void 0);var Pe=ue.put(Y,h);Q.oncomplete=function(){Y===void 0&&(Y=null),_(Y)},Q.onabort=Q.onerror=function(){var De=Pe.error?Pe.error:Pe.transaction.error;F(De)}}catch(De){F(De)}})}).catch(F)});return d($,g),$}function z(h,w){var g=this;h=p(h);var E=new u(function($,_){g.ready().then(function(){$e(g._dbInfo,T,function(F,q){if(F)return _(F);try{var Y=q.objectStore(g._dbInfo.storeName),X=Y.delete(h);q.oncomplete=function(){$()},q.onerror=function(){_(X.error)},q.onabort=function(){var Q=X.error?X.error:X.transaction.error;_(Q)}}catch(Q){_(Q)}})}).catch(_)});return d(E,w),E}function ne(h){var w=this,g=new u(function(E,$){w.ready().then(function(){$e(w._dbInfo,T,function(_,F){if(_)return $(_);try{var q=F.objectStore(w._dbInfo.storeName),Y=q.clear();F.oncomplete=function(){E()},F.onabort=F.onerror=function(){var X=Y.error?Y.error:Y.transaction.error;$(X)}}catch(X){$(X)}})}).catch($)});return d(g,h),g}function H(h){var w=this,g=new u(function(E,$){w.ready().then(function(){$e(w._dbInfo,k,function(_,F){if(_)return $(_);try{var q=F.objectStore(w._dbInfo.storeName),Y=q.count();Y.onsuccess=function(){E(Y.result)},Y.onerror=function(){$(Y.error)}}catch(X){$(X)}})}).catch($)});return d(g,h),g}function se(h,w){var g=this,E=new u(function($,_){if(h<0){$(null);return}g.ready().then(function(){$e(g._dbInfo,k,function(F,q){if(F)return _(F);try{var Y=q.objectStore(g._dbInfo.storeName),X=!1,Q=Y.openKeyCursor();Q.onsuccess=function(){var ue=Q.result;if(!ue){$(null);return}h===0||X?$(ue.key):(X=!0,ue.advance(h))},Q.onerror=function(){_(Q.error)}}catch(ue){_(ue)}})}).catch(_)});return d(E,w),E}function Re(h){var w=this,g=new u(function(E,$){w.ready().then(function(){$e(w._dbInfo,k,function(_,F){if(_)return $(_);try{var q=F.objectStore(w._dbInfo.storeName),Y=q.openKeyCursor(),X=[];Y.onsuccess=function(){var Q=Y.result;if(!Q){E(X);return}X.push(Q.key),Q.continue()},Y.onerror=function(){$(Y.error)}}catch(Q){$(Q)}})}).catch($)});return d(g,h),g}function Le(h,w){w=C.apply(this,arguments);var g=this.config();h=typeof h!="function"&&h||{},h.name||(h.name=h.name||g.name,h.storeName=h.storeName||g.storeName);var E=this,$;if(!h.name)$=u.reject("Invalid arguments");else{var _=h.name===g.name&&E._dbInfo.db,F=_?u.resolve(E._dbInfo.db):ie(h).then(function(q){var Y=R[h.name],X=Y.forages;Y.db=q;for(var Q=0;Q<X.length;Q++)X[Q]._dbInfo.db=q;return q});h.storeName?$=F.then(function(q){if(q.objectStoreNames.contains(h.storeName)){var Y=q.version+1;A(h);var X=R[h.name],Q=X.forages;q.close();for(var ue=0;ue<Q.length;ue++){var Pe=Q[ue];Pe._dbInfo.db=null,Pe._dbInfo.version=Y}var De=new u(function(He,tt){var et=l.open(h.name,Y);et.onerror=function(Bt){var Er=et.result;Er.close(),tt(Bt)},et.onupgradeneeded=function(){var Bt=et.result;Bt.deleteObjectStore(h.storeName)},et.onsuccess=function(){var Bt=et.result;Bt.close(),He(Bt)}});return De.then(function(He){X.db=He;for(var tt=0;tt<Q.length;tt++){var et=Q[tt];et._dbInfo.db=He,G(et._dbInfo)}}).catch(function(He){throw(Z(h,He)||u.resolve()).catch(function(){}),He})}}):$=F.then(function(q){A(h);var Y=R[h.name],X=Y.forages;q.close();for(var Q=0;Q<X.length;Q++){var ue=X[Q];ue._dbInfo.db=null}var Pe=new u(function(De,He){var tt=l.deleteDatabase(h.name);tt.onerror=function(){var et=tt.result;et&&et.close(),He(tt.error)},tt.onblocked=function(){console.warn('dropInstance blocked for database "'+h.name+'" until all open connections are closed')},tt.onsuccess=function(){var et=tt.result;et&&et.close(),De(et)}});return Pe.then(function(De){Y.db=De;for(var He=0;He<X.length;He++){var tt=X[He];G(tt._dbInfo)}}).catch(function(De){throw(Z(h,De)||u.resolve()).catch(function(){}),De})})}return d($,w),$}var m={_driver:"asyncStorage",_initStorage:ot,_support:c(),iterate:At,getItem:it,setItem:xe,removeItem:z,clear:ne,length:H,key:se,keys:Re,dropInstance:Le};function y(){return typeof openDatabase=="function"}var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N="~~local_forage_type~",M=/^~~local_forage_type~([^~]+)~/,W="__lfsc__:",ee=W.length,j="arbf",V="blob",U="si08",pe="ui08",re="uic8",ae="si16",ge="si32",Te="ur16",Ae="ui32",Oe="fl32",at="fl64",Ze=ee+j.length,lt=Object.prototype.toString;function st(h){var w=h.length*.75,g=h.length,E,$=0,_,F,q,Y;h[h.length-1]==="="&&(w--,h[h.length-2]==="="&&w--);var X=new ArrayBuffer(w),Q=new Uint8Array(X);for(E=0;E<g;E+=4)_=I.indexOf(h[E]),F=I.indexOf(h[E+1]),q=I.indexOf(h[E+2]),Y=I.indexOf(h[E+3]),Q[$++]=_<<2|F>>4,Q[$++]=(F&15)<<4|q>>2,Q[$++]=(q&3)<<6|Y&63;return X}function pt(h){var w=new Uint8Array(h),g="",E;for(E=0;E<w.length;E+=3)g+=I[w[E]>>2],g+=I[(w[E]&3)<<4|w[E+1]>>4],g+=I[(w[E+1]&15)<<2|w[E+2]>>6],g+=I[w[E+2]&63];return w.length%3===2?g=g.substring(0,g.length-1)+"=":w.length%3===1&&(g=g.substring(0,g.length-2)+"=="),g}function Sr(h,w){var g="";if(h&&(g=lt.call(h)),h&&(g==="[object ArrayBuffer]"||h.buffer&&lt.call(h.buffer)==="[object ArrayBuffer]")){var E,$=W;h instanceof ArrayBuffer?(E=h,$+=j):(E=h.buffer,g==="[object Int8Array]"?$+=U:g==="[object Uint8Array]"?$+=pe:g==="[object Uint8ClampedArray]"?$+=re:g==="[object Int16Array]"?$+=ae:g==="[object Uint16Array]"?$+=Te:g==="[object Int32Array]"?$+=ge:g==="[object Uint32Array]"?$+=Ae:g==="[object Float32Array]"?$+=Oe:g==="[object Float64Array]"?$+=at:w(new Error("Failed to get type for BinaryArray"))),w($+pt(E))}else if(g==="[object Blob]"){var _=new FileReader;_.onload=function(){var F=N+h.type+"~"+pt(this.result);w(W+V+F)},_.readAsArrayBuffer(h)}else try{w(JSON.stringify(h))}catch(F){console.error("Couldn't convert value into a JSON string: ",h),w(null,F)}}function K(h){if(h.substring(0,ee)!==W)return JSON.parse(h);var w=h.substring(Ze),g=h.substring(ee,Ze),E;if(g===V&&M.test(w)){var $=w.match(M);E=$[1],w=w.substring($[0].length)}var _=st(w);switch(g){case j:return _;case V:return f([_],{type:E});case U:return new Int8Array(_);case pe:return new Uint8Array(_);case re:return new Uint8ClampedArray(_);case ae:return new Int16Array(_);case Te:return new Uint16Array(_);case ge:return new Int32Array(_);case Ae:return new Uint32Array(_);case Oe:return new Float32Array(_);case at:return new Float64Array(_);default:throw new Error("Unkown type: "+g)}}var oe={serialize:Sr,deserialize:K,stringToBuffer:st,bufferToString:pt};function me(h,w,g,E){h.executeSql("CREATE TABLE IF NOT EXISTS "+w.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],g,E)}function We(h){var w=this,g={db:null};if(h)for(var E in h)g[E]=typeof h[E]!="string"?h[E].toString():h[E];var $=new u(function(_,F){try{g.db=openDatabase(g.name,String(g.version),g.description,g.size)}catch(q){return F(q)}g.db.transaction(function(q){me(q,g,function(){w._dbInfo=g,_()},function(Y,X){F(X)})},F)});return g.serializer=oe,$}function je(h,w,g,E,$,_){h.executeSql(g,E,$,function(F,q){q.code===q.SYNTAX_ERR?F.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[w.storeName],function(Y,X){X.rows.length?_(Y,q):me(Y,w,function(){Y.executeSql(g,E,$,_)},_)},_):_(F,q)},_)}function vt(h,w){var g=this;h=p(h);var E=new u(function($,_){g.ready().then(function(){var F=g._dbInfo;F.db.transaction(function(q){je(q,F,"SELECT * FROM "+F.storeName+" WHERE key = ? LIMIT 1",[h],function(Y,X){var Q=X.rows.length?X.rows.item(0).value:null;Q&&(Q=F.serializer.deserialize(Q)),$(Q)},function(Y,X){_(X)})})}).catch(_)});return d(E,w),E}function Pt(h,w){var g=this,E=new u(function($,_){g.ready().then(function(){var F=g._dbInfo;F.db.transaction(function(q){je(q,F,"SELECT * FROM "+F.storeName,[],function(Y,X){for(var Q=X.rows,ue=Q.length,Pe=0;Pe<ue;Pe++){var De=Q.item(Pe),He=De.value;if(He&&(He=F.serializer.deserialize(He)),He=h(He,De.key,Pe+1),He!==void 0){$(He);return}}$()},function(Y,X){_(X)})})}).catch(_)});return d(E,w),E}function Ve(h,w,g,E){var $=this;h=p(h);var _=new u(function(F,q){$.ready().then(function(){w===void 0&&(w=null);var Y=w,X=$._dbInfo;X.serializer.serialize(w,function(Q,ue){ue?q(ue):X.db.transaction(function(Pe){je(Pe,X,"INSERT OR REPLACE INTO "+X.storeName+" (key, value) VALUES (?, ?)",[h,Q],function(){F(Y)},function(De,He){q(He)})},function(Pe){if(Pe.code===Pe.QUOTA_ERR){if(E>0){F(Ve.apply($,[h,Y,g,E-1]));return}q(Pe)}})})}).catch(q)});return d(_,g),_}function $t(h,w,g){return Ve.apply(this,[h,w,g,1])}function En(h,w){var g=this;h=p(h);var E=new u(function($,_){g.ready().then(function(){var F=g._dbInfo;F.db.transaction(function(q){je(q,F,"DELETE FROM "+F.storeName+" WHERE key = ?",[h],function(){$()},function(Y,X){_(X)})})}).catch(_)});return d(E,w),E}function jd(h){var w=this,g=new u(function(E,$){w.ready().then(function(){var _=w._dbInfo;_.db.transaction(function(F){je(F,_,"DELETE FROM "+_.storeName,[],function(){E()},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Wd(h){var w=this,g=new u(function(E,$){w.ready().then(function(){var _=w._dbInfo;_.db.transaction(function(F){je(F,_,"SELECT COUNT(key) as c FROM "+_.storeName,[],function(q,Y){var X=Y.rows.item(0).c;E(X)},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Vd(h,w){var g=this,E=new u(function($,_){g.ready().then(function(){var F=g._dbInfo;F.db.transaction(function(q){je(q,F,"SELECT key FROM "+F.storeName+" WHERE id = ? LIMIT 1",[h+1],function(Y,X){var Q=X.rows.length?X.rows.item(0).key:null;$(Q)},function(Y,X){_(X)})})}).catch(_)});return d(E,w),E}function Ud(h){var w=this,g=new u(function(E,$){w.ready().then(function(){var _=w._dbInfo;_.db.transaction(function(F){je(F,_,"SELECT key FROM "+_.storeName,[],function(q,Y){for(var X=[],Q=0;Q<Y.rows.length;Q++)X.push(Y.rows.item(Q).key);E(X)},function(q,Y){$(Y)})})}).catch($)});return d(g,h),g}function Kd(h){return new u(function(w,g){h.transaction(function(E){E.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function($,_){for(var F=[],q=0;q<_.rows.length;q++)F.push(_.rows.item(q).name);w({db:h,storeNames:F})},function($,_){g(_)})},function(E){g(E)})})}function Gd(h,w){w=C.apply(this,arguments);var g=this.config();h=typeof h!="function"&&h||{},h.name||(h.name=h.name||g.name,h.storeName=h.storeName||g.storeName);var E=this,$;return h.name?$=new u(function(_){var F;h.name===g.name?F=E._dbInfo.db:F=openDatabase(h.name,"","",0),h.storeName?_({db:F,storeNames:[h.storeName]}):_(Kd(F))}).then(function(_){return new u(function(F,q){_.db.transaction(function(Y){function X(De){return new u(function(He,tt){Y.executeSql("DROP TABLE IF EXISTS "+De,[],function(){He()},function(et,Bt){tt(Bt)})})}for(var Q=[],ue=0,Pe=_.storeNames.length;ue<Pe;ue++)Q.push(X(_.storeNames[ue]));u.all(Q).then(function(){F()}).catch(function(De){q(De)})},function(Y){q(Y)})})}):$=u.reject("Invalid arguments"),d($,w),$}var qd={_driver:"webSQLStorage",_initStorage:We,_support:y(),iterate:Pt,getItem:vt,setItem:$t,removeItem:En,clear:jd,length:Wd,key:Vd,keys:Ud,dropInstance:Gd};function Yd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function ka(h,w){var g=h.name+"/";return h.storeName!==w.storeName&&(g+=h.storeName+"/"),g}function Xd(){var h="_localforage_support_test";try{return localStorage.setItem(h,!0),localStorage.removeItem(h),!1}catch{return!0}}function Zd(){return!Xd()||localStorage.length>0}function Qd(h){var w=this,g={};if(h)for(var E in h)g[E]=h[E];return g.keyPrefix=ka(h,w._defaultConfig),Zd()?(w._dbInfo=g,g.serializer=oe,u.resolve()):u.reject()}function Jd(h){var w=this,g=w.ready().then(function(){for(var E=w._dbInfo.keyPrefix,$=localStorage.length-1;$>=0;$--){var _=localStorage.key($);_.indexOf(E)===0&&localStorage.removeItem(_)}});return d(g,h),g}function eh(h,w){var g=this;h=p(h);var E=g.ready().then(function(){var $=g._dbInfo,_=localStorage.getItem($.keyPrefix+h);return _&&(_=$.serializer.deserialize(_)),_});return d(E,w),E}function th(h,w){var g=this,E=g.ready().then(function(){for(var $=g._dbInfo,_=$.keyPrefix,F=_.length,q=localStorage.length,Y=1,X=0;X<q;X++){var Q=localStorage.key(X);if(Q.indexOf(_)===0){var ue=localStorage.getItem(Q);if(ue&&(ue=$.serializer.deserialize(ue)),ue=h(ue,Q.substring(F),Y++),ue!==void 0)return ue}}});return d(E,w),E}function nh(h,w){var g=this,E=g.ready().then(function(){var $=g._dbInfo,_;try{_=localStorage.key(h)}catch{_=null}return _&&(_=_.substring($.keyPrefix.length)),_});return d(E,w),E}function rh(h){var w=this,g=w.ready().then(function(){for(var E=w._dbInfo,$=localStorage.length,_=[],F=0;F<$;F++){var q=localStorage.key(F);q.indexOf(E.keyPrefix)===0&&_.push(q.substring(E.keyPrefix.length))}return _});return d(g,h),g}function oh(h){var w=this,g=w.keys().then(function(E){return E.length});return d(g,h),g}function ih(h,w){var g=this;h=p(h);var E=g.ready().then(function(){var $=g._dbInfo;localStorage.removeItem($.keyPrefix+h)});return d(E,w),E}function sh(h,w,g){var E=this;h=p(h);var $=E.ready().then(function(){w===void 0&&(w=null);var _=w;return new u(function(F,q){var Y=E._dbInfo;Y.serializer.serialize(w,function(X,Q){if(Q)q(Q);else try{localStorage.setItem(Y.keyPrefix+h,X),F(_)}catch(ue){(ue.name==="QuotaExceededError"||ue.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q(ue),q(ue)}})})});return d($,g),$}function ah(h,w){if(w=C.apply(this,arguments),h=typeof h!="function"&&h||{},!h.name){var g=this.config();h.name=h.name||g.name,h.storeName=h.storeName||g.storeName}var E=this,$;return h.name?$=new u(function(_){h.storeName?_(ka(h,E._defaultConfig)):_(h.name+"/")}).then(function(_){for(var F=localStorage.length-1;F>=0;F--){var q=localStorage.key(F);q.indexOf(_)===0&&localStorage.removeItem(q)}}):$=u.reject("Invalid arguments"),d($,w),$}var lh={_driver:"localStorageWrapper",_initStorage:Qd,_support:Yd(),iterate:th,getItem:eh,setItem:sh,removeItem:ih,clear:Jd,length:oh,key:nh,keys:rh,dropInstance:ah},ch=function(w,g){return w===g||typeof w=="number"&&typeof g=="number"&&isNaN(w)&&isNaN(g)},uh=function(w,g){for(var E=w.length,$=0;$<E;){if(ch(w[$],g))return!0;$++}return!1},Aa=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},_r={},Ba={},Kn={INDEXEDDB:m,WEBSQL:qd,LOCALSTORAGE:lh},fh=[Kn.INDEXEDDB._driver,Kn.WEBSQL._driver,Kn.LOCALSTORAGE._driver],Ro=["dropInstance"],Bi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Ro),dh={description:"",driver:fh.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function hh(h,w){h[w]=function(){var g=arguments;return h.ready().then(function(){return h[w].apply(h,g)})}}function zi(){for(var h=1;h<arguments.length;h++){var w=arguments[h];if(w)for(var g in w)w.hasOwnProperty(g)&&(Aa(w[g])?arguments[0][g]=w[g].slice():arguments[0][g]=w[g])}return arguments[0]}var ph=function(){function h(w){s(this,h);for(var g in Kn)if(Kn.hasOwnProperty(g)){var E=Kn[g],$=E._driver;this[g]=$,_r[$]||this.defineDriver(E)}this._defaultConfig=zi({},dh),this._config=zi({},this._defaultConfig,w),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return h.prototype.config=function(g){if((typeof g>"u"?"undefined":i(g))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var E in g){if(E==="storeName"&&(g[E]=g[E].replace(/\W/g,"_")),E==="version"&&typeof g[E]!="number")return new Error("Database version must be a number.");this._config[E]=g[E]}return"driver"in g&&g.driver?this.setDriver(this._config.driver):!0}else return typeof g=="string"?this._config[g]:this._config},h.prototype.defineDriver=function(g,E,$){var _=new u(function(F,q){try{var Y=g._driver,X=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!g._driver){q(X);return}for(var Q=Bi.concat("_initStorage"),ue=0,Pe=Q.length;ue<Pe;ue++){var De=Q[ue],He=!uh(Ro,De);if((He||g[De])&&typeof g[De]!="function"){q(X);return}}var tt=function(){for(var Er=function(mh){return function(){var bh=new Error("Method "+mh+" is not implemented by the current driver"),za=u.reject(bh);return d(za,arguments[arguments.length-1]),za}},Mi=0,gh=Ro.length;Mi<gh;Mi++){var Di=Ro[Mi];g[Di]||(g[Di]=Er(Di))}};tt();var et=function(Er){_r[Y]&&console.info("Redefining LocalForage driver: "+Y),_r[Y]=g,Ba[Y]=Er,F()};"_support"in g?g._support&&typeof g._support=="function"?g._support().then(et,q):et(!!g._support):et(!0)}catch(Bt){q(Bt)}});return v(_,E,$),_},h.prototype.driver=function(){return this._driver||null},h.prototype.getDriver=function(g,E,$){var _=_r[g]?u.resolve(_r[g]):u.reject(new Error("Driver not found."));return v(_,E,$),_},h.prototype.getSerializer=function(g){var E=u.resolve(oe);return v(E,g),E},h.prototype.ready=function(g){var E=this,$=E._driverSet.then(function(){return E._ready===null&&(E._ready=E._initDriver()),E._ready});return v($,g,g),$},h.prototype.setDriver=function(g,E,$){var _=this;Aa(g)||(g=[g]);var F=this._getSupportedDrivers(g);function q(){_._config.driver=_.driver()}function Y(ue){return _._extend(ue),q(),_._ready=_._initStorage(_._config),_._ready}function X(ue){return function(){var Pe=0;function De(){for(;Pe<ue.length;){var He=ue[Pe];return Pe++,_._dbInfo=null,_._ready=null,_.getDriver(He).then(Y).catch(De)}q();var tt=new Error("No available storage method found.");return _._driverSet=u.reject(tt),_._driverSet}return De()}}var Q=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=Q.then(function(){var ue=F[0];return _._dbInfo=null,_._ready=null,_.getDriver(ue).then(function(Pe){_._driver=Pe._driver,q(),_._wrapLibraryMethodsWithReady(),_._initDriver=X(F)})}).catch(function(){q();var ue=new Error("No available storage method found.");return _._driverSet=u.reject(ue),_._driverSet}),v(this._driverSet,E,$),this._driverSet},h.prototype.supports=function(g){return!!Ba[g]},h.prototype._extend=function(g){zi(this,g)},h.prototype._getSupportedDrivers=function(g){for(var E=[],$=0,_=g.length;$<_;$++){var F=g[$];this.supports(F)&&E.push(F)}return E},h.prototype._wrapLibraryMethodsWithReady=function(){for(var g=0,E=Bi.length;g<E;g++)hh(this,Bi[g])},h.prototype.createInstance=function(g){return new h(g)},h}(),vh=new ph;r.exports=vh},{3:3}]},{},[4])(4)})})(zd);var zw=zd.exports;const ui=y1(zw),Mw=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com","https://detect.gkd.li"]),CC=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:Mw.has(e.origin)),Dw=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],Md=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of Dw){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},SC=e=>location.origin+`/i/${e}`,Fw=e=>`https://github.com/user-attachments/files/${e}/file.zip`,Lw=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/([0-9]+)\/([0-9a-z-]+)$/,Nc="https://github.com/user-attachments/assets/",_C=e=>{if(e.startsWith(Nc))return"https://e.gkd.li/"+e.substring(Nc.length);const{1:t,2:n}=e.match(Lw)||[];return t&&n?`https://m.gkd.li/${t}/${n}`:(console.error(`github url ${e} should come from gkd-kit/inspect files/assets`),e)},EC=e=>{try{return new URL(e)}catch{}},Ai=(e={})=>{var l;(l=e.driver)!=null||(e.driver=ui.INDEXEDDB);const t=ui.createInstance(e);return{keys:async()=>t.keys(),hasItem:async c=>{const f=c.toString();return t.keys().then(u=>u.includes(f))},getItem:async c=>t.getItem(c.toString()),setItem:async(c,f)=>t.setItem(c.toString(),f),removeItem:async c=>t.removeItem(c.toString()),getAllItems:async()=>Promise.all((await t.keys()).map(c=>t.getItem(c)))}},Ia=[],_o=(e,t,n)=>{const r=ho(t);let o=!1;Lt(r,async()=>{o&&await ui.setItem(e,Ie(r))});const i=ui.getItem(e).then(s=>{s&&(n&&(s=n(s)),Object.assign(r,s)),o=!0});return Ia.push(i),r},Eo=Ai({name:"snapshot",version:1}),Hw=Eo.setItem;Eo.setItem=async(e,t)=>{const n={...t,nodes:[]};return await Dd.setItem(e,n),Hw(e,t)};const Nw=Eo.removeItem;Eo.removeItem=async e=>{await Promise.all([Nw(e),Dd.removeItem(e),Fd.removeItem(e),Hs[e]&&delete Hs[e]])};const Dd=Ai({name:"shallowSnapshot",version:1}),Fd=Ai({name:"screenshot",version:1}),RC=async(e,t)=>{Object.entries(fi).forEach(([n,r])=>{r==e.id&&delete fi[n]}),jc[e.id]&&delete jc[e.id],di[e.id]&&delete di[e.id],Hs[e.id]=Date.now(),await Promise.all([Eo.setItem(e.id,e),Fd.setItem(e.id,t)])};Ai({name:"cache",version:1});const Ld=e=>typeof e=="number"?!0:e?Array.prototype.every.call(e,t=>"0"<=t&&t<="9"):!1,fi=_o("url",{},e=>(Object.keys(e).forEach(t=>{if(Ld(t))return;const n=Md(t);n&&(e[n]=e[t]),delete e[t]}),e)),Hs=_o("importTime",{}),jc=_o("githubJpg",{}),di=_o("githubZip",{},e=>(Object.entries(e).forEach(([t,n])=>{const r=n;if(Ld(r))return;const o=Md(r);o?e[t]=+o:delete e[t]}),e)),Wc=_o("settings",{autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1}),Vc="snapshots-cache-version",us="v2";localStorage.getItem(Vc)!==us&&(localStorage.setItem(Vc,us),Promise.all(Ia).then(async()=>{(await(await fetch(`https://registry.npmmirror.com/@gkd-kit/assets/latest/files/assets/snapshots-${us}.json`)).json()).forEach(n=>{di[n.id]||(di[n.id]=n.import_id),fi[n.import_id]||(fi[n.import_id]=n.id)})}));const Qn=Qs({networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0}),jw=Xe({__name:"ErrorDlg",setup(e){return(t,n)=>{const r=A1,o=g1;return to(),sv(nt,null,[qe(r,{show:ft(Qn).githubErrorDlgVisible,"onUpdate:show":n[0]||(n[0]=i=>ft(Qn).githubErrorDlgVisible=i),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:tr(()=>n[4]||(n[4]=[mt("div",null,"生成分享链接需要以下条件",-1),mt("div",null,[Ht(" 在当前浏览器登录 "),mt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),qe(r,{show:ft(Qn).networkErrorDlgVisible,"onUpdate:show":n[1]||(n[1]=i=>ft(Qn).networkErrorDlgVisible=i),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:tr(()=>n[5]||(n[5]=[mt("div",null,"访问其它域名资源需要以下条件",-1),mt("div",null,[Ht(" 1. 安装脚本管理器, 如 "),mt("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),mt("div",null,[Ht(" 2. 安装油猴脚本 "),mt("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),mt("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),mt("div",null,[Ht(" 4. 如果是分享链接则需要在当前浏览器登录 "),mt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])),_:1},8,["show"]),qe(r,{show:ft(Qn).wasmErrorDlgVisible,"onUpdate:show":n[3]||(n[3]=i=>ft(Qn).wasmErrorDlgVisible=i),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:tr(()=>[n[7]||(n[7]=mt("div",null,[Ht(" 选择器的正则表达式一致性需要使用 "),mt("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),n[8]||(n[8]=mt("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),qe(o,{class:"mt-10px",checked:ft(Wc).ignoreWasmWarn,"onUpdate:checked":n[2]||(n[2]=i=>ft(Wc).ignoreWasmWarn=i)},{default:tr(()=>n[6]||(n[6]=[Ht(" 不关注一致性, 不再提醒 ")])),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),Ww=Xe({__name:"App",setup(e){return(t,n)=>{const r=b1;return to(),ti(r,{locale:ft(jy),"date-locale":ft(Tx),abstract:""},{default:tr(()=>[qe(jw),qe(ft(Bd))]),_:1},8,["locale","date-locale"])}}}),Vw="modulepreload",Uw=function(e,t){return new URL(e,t).href},Uc={},pn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=Uw(c,r),c in Uc)return;Uc[c]=!0;const f=c.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(!!r)for(let p=s.length-1;p>=0;p--){const C=s[p];if(C.href===c&&(!f||C.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":Vw,f||(v.as="script"),v.crossOrigin="",v.href=c,l&&v.setAttribute("nonce",l),document.head.appendChild(v),f)return new Promise((p,C)=>{v.addEventListener("load",p),v.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},Kc=(e,t)=>{try{return new URL(e,t)}catch{}},Gc=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:Fw(t)}}:{path:"/404"}},Hd=Aw({history:uw("/"),routes:[{path:"/",component:()=>pn(()=>import("./HomePage-BCLKJI9l.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{path:"/snapshot/:snapshotId",name:"snapshot",component:()=>pn(()=>import("./SnapshotPage-D-3NPjhd.js"),__vite__mapDeps([9,1,2,3,4,5,6,10,11]),import.meta.url)},{path:"/i",component:()=>pn(()=>import("./ImportPage-6CQo5Zvl.js"),__vite__mapDeps([12,2,4,5,7]),import.meta.url)},{path:"/i/:github_asset_id",redirect:Gc},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Gc},{path:"/device",component:()=>pn(()=>import("./DevicePage-BPmKnXuw.js"),__vite__mapDeps([13,2,11,8,3,6,5,10]),import.meta.url),beforeEnter(e,t,n){const r=Kc(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()}},{path:"/s",component:()=>pn(()=>import("./PreviewSharePage-DiFufsy2.js"),__vite__mapDeps([14,2,10,3]),import.meta.url),beforeEnter(e,t,n){return e.query.url&&Kc(String(e.query.url))?n():n({path:"/404"})}},{path:"/s/:github_asset_id",component:()=>pn(()=>import("./PreviewSharePage-DiFufsy2.js"),__vite__mapDeps([14,2,10,3]),import.meta.url),beforeEnter(e,t,n){var o;const r=(o=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:o[0];return r?e.params.github_asset_id===r?n():n("/s/"+r):n({path:"/404"})}},{path:"/selector",component:()=>pn(()=>import("./SelectorPage-1Bhoa1BZ.js"),[],import.meta.url)},{path:"/:pathMatch(.*)*",component:()=>pn(()=>import("./_404Page-SUKvHtMY.js"),[],import.meta.url)}]}),Kw={hash:"6e35854d908fcedd7a42592293e9795b31be72bb",date:"2024-10-09T16:24:25+08:00",message:"feat: label suffix",refs:"grafted, HEAD -> main, origin/main",body:"",author_name:"lisonge",author_email:"i@songe.li"},Gw=`GIT commit
559
559
  `+Object.entries(Kw).filter(([e,t])=>String(t||"").trim()).map(([e,t])=>e+": "+t).join(`
560
560
  `),qw=document.querySelector("#app");let qc=!1;Hd.beforeEach(async(e,t,n)=>{qc||(await Promise.all(Ia).catch(console.error),qc=!0),n()});const Nd=Qv(Ww);Nd.use(Hd);Nd.mount(qw);console.log(Gw);export{g1 as $,na as A,ca as B,to as C,sv as D,qe as E,tr as F,ft as G,ut as H,nt as I,xC as J,mt as K,Ht as L,kh as M,Ea as N,eC as O,Sc as P,Wn as Q,Qs as R,ho as S,Lt as T,Dd as U,Kc as V,Eo as W,_C as X,nC as Y,Wc as Z,A1 as _,we as a,It as a$,Oi as a0,jt as a1,Zx as a2,Co as a3,sC as a4,Mg as a5,vs as a6,dl as a7,kx as a8,vf as a9,a1 as aA,Qn as aB,di as aC,wC as aD,tC as aE,jc as aF,SC as aG,Zw as aH,Fd as aI,pn as aJ,bd as aK,Ix as aL,va as aM,Es as aN,Md as aO,EC as aP,fi as aQ,Fw as aR,RC as aS,Vo as aT,Uo as aU,y1 as aV,_f as aW,jn as aX,Kt as aY,_t as aZ,on as a_,si as aa,Ye as ab,cg as ac,aC as ad,dd as ae,lC as af,pa as ag,hC as ah,u1 as ai,vd as aj,ga as ak,wf as al,qn as am,xo as an,iC as ao,ha as ap,_l as aq,vC as ar,Qr as as,Du as at,ti as au,Op as av,Us as aw,Ks as ax,yp as ay,Qw as az,ce as b,Si as b$,Ri as b0,Kl as b1,ur as b2,Ux as b3,md as b4,Rl as b5,hd as b6,El as b7,Pf as b8,Zg as b9,h0 as bA,ai as bB,Wm as bC,br as bD,W0 as bE,Jm as bF,wo as bG,Jf as bH,fr as bI,Ti as bJ,vc as bK,Yf as bL,yr as bM,Zf as bN,mr as bO,Vn as bP,Uf as bQ,Vf as bR,Is as bS,Wf as bT,zy as bU,Vm as bV,wn as bW,uC as bX,$m as bY,ug as bZ,sn as b_,da as ba,fC as bb,pC as bc,fa as bd,gC as be,Xg as bf,ii as bg,Gg as bh,Yg as bi,Gl as bj,lo as bk,Hs as bl,Ef as bm,mo as bn,Bl as bo,dC as bp,$g as bq,em as br,im as bs,Au as bt,Bu as bu,wa as bv,gr as bw,p0 as bx,Kf as by,Sa as bz,Mr as c,Rs as c0,oC as c1,ct as c2,ip as c3,Ie as c4,is as c5,kr as c6,dx as c7,Ar as c8,So as c9,Xx as ca,Bh as cb,Xw as cc,xr as cd,Ta as ce,E1 as cf,C1 as cg,Vg as ch,jg as ci,R1 as cj,bC as ck,yC as cl,gd as cm,bc as cn,Ox as co,$x as cp,k1 as cq,Qv as cr,b1 as cs,qw as ct,CC as cu,Ms as cv,mC as cw,Cr as d,J as e,Ee as f,Ps as g,Xe as h,ci as i,kt as j,ya as k,Tf as l,le as m,_e as n,Cl as o,rC as p,wr as q,be as r,fg as s,Wt as t,Un as u,L as v,Dt as w,Fx as x,Qe as y,Jw as z};
561
- //# sourceMappingURL=index-CYOhDK3x.js.map
561
+ //# sourceMappingURL=index-CjSeFmRv.js.map