@gkd-kit/inspect 0.0.1724212496955 → 0.0.1724845634815
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.
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-CIY72Vdy.js → ActionCard.vue_vue_type_script_setup_true_lang-BbGMHnD9.js} +2 -2
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-CIY72Vdy.js.map → ActionCard.vue_vue_type_script_setup_true_lang-BbGMHnD9.js.map} +1 -1
- package/dist/assets/{DevicePage-Dw9tHC7e.js → DevicePage-DWVnDXb3.js} +3 -3
- package/dist/assets/DevicePage-DWVnDXb3.js.map +1 -0
- package/dist/assets/{HomePage-CCV_QClN.js → HomePage-DZKgaZTl.js} +2 -2
- package/dist/assets/{HomePage-CCV_QClN.js.map → HomePage-DZKgaZTl.js.map} +1 -1
- package/dist/assets/{ImportPage-CCi6UPiJ.js → ImportPage-DBrKtDF5.js} +2 -2
- package/dist/assets/{ImportPage-CCi6UPiJ.js.map → ImportPage-DBrKtDF5.js.map} +1 -1
- package/dist/assets/{PreviewSharePage-DZs1PBYq.js → PreviewSharePage-D6oHndWU.js} +2 -2
- package/dist/assets/PreviewSharePage-D6oHndWU.js.map +1 -0
- package/dist/assets/{SelectorPage-B5vktFbE.js → SelectorPage-DK-cX4tL.js} +2 -2
- package/dist/assets/SelectorPage-DK-cX4tL.js.map +1 -0
- package/dist/assets/SnapshotPage-BtoKmreE.js +279 -0
- package/dist/assets/SnapshotPage-BtoKmreE.js.map +1 -0
- package/dist/assets/{TrackGraph-GHyeG43E.js → TrackGraph-Mr8YgZkT.js} +2 -2
- package/dist/assets/{TrackGraph-GHyeG43E.js.map → TrackGraph-Mr8YgZkT.js.map} +1 -1
- package/dist/assets/{_404Page-GfcNDszj.js → _404Page-BOCYvpci.js} +2 -2
- package/dist/assets/{_404Page-GfcNDszj.js.map → _404Page-BOCYvpci.js.map} +1 -1
- package/dist/assets/{dayjs.min-CPdBjKMf.js → dayjs.min-C6WHLj8F.js} +2 -2
- package/dist/assets/{dayjs.min-CPdBjKMf.js.map → dayjs.min-C6WHLj8F.js.map} +1 -1
- package/dist/assets/{error--Ek-XQjd.js → error-CT3VwMVA.js} +2 -2
- package/dist/assets/{error--Ek-XQjd.js.map → error-CT3VwMVA.js.map} +1 -1
- package/dist/assets/{export-Y7lYzYb0.js → export-DOXRnbdk.js} +2 -2
- package/dist/assets/{export-Y7lYzYb0.js.map → export-DOXRnbdk.js.map} +1 -1
- package/dist/assets/{fetch-CkXwyjAz.js → fetch-BConzvJz.js} +2 -2
- package/dist/assets/{fetch-CkXwyjAz.js.map → fetch-BConzvJz.js.map} +1 -1
- package/dist/assets/{import-AzRGIDwO.js → import-cAeWUQpR.js} +2 -2
- package/dist/assets/{import-AzRGIDwO.js.map → import-cAeWUQpR.js.map} +1 -1
- package/dist/assets/{index-D7wjA5Pk.js → index-B4qBe5EY.js} +2 -2
- package/dist/assets/{index-D7wjA5Pk.js.map → index-B4qBe5EY.js.map} +1 -1
- package/dist/assets/{index-BC8bkeo-.js → index-BxtwZRnf.js} +10 -10
- package/dist/assets/{index-BC8bkeo-.js.map → index-BxtwZRnf.js.map} +1 -1
- package/dist/assets/{index-C1mx1Auf.js → index-C_l9cDju.js} +3 -3
- package/dist/assets/{index-C1mx1Auf.js.map → index-C_l9cDju.js.map} +1 -1
- package/dist/assets/index-LsqPCfwK.css +1 -0
- package/dist/assets/{table-BlFoa26t.js → table-BXnFF0RB.js} +2 -2
- package/dist/assets/{table-BlFoa26t.js.map → table-BXnFF0RB.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +2 -1
- package/dist/assets/DevicePage-Dw9tHC7e.js.map +0 -1
- package/dist/assets/PreviewSharePage-DZs1PBYq.js.map +0 -1
- package/dist/assets/SelectorPage-B5vktFbE.js.map +0 -1
- package/dist/assets/SnapshotPage-DWWevJUE.js +0 -276
- package/dist/assets/SnapshotPage-DWWevJUE.js.map +0 -1
- package/dist/assets/index-C5ebV86D.css +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.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/HomePage-DZKgaZTl.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-BbGMHnD9.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/fetch-BConzvJz.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/export-DOXRnbdk.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/index-CE_5kTG8.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/dayjs.min-C6WHLj8F.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/index-BxtwZRnf.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/import-cAeWUQpR.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/table-BXnFF0RB.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/SnapshotPage-BtoKmreE.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/index-B4qBe5EY.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/error-CT3VwMVA.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/ImportPage-DBrKtDF5.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/DevicePage-DWVnDXb3.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1724845634815/files/dist/assets/PreviewSharePage-D6oHndWU.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.4.34
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -559,7 +559,7 @@ ${t}
|
|
|
559
559
|
Version 1.10.0
|
|
560
560
|
https://localforage.github.io/localForage
|
|
561
561
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
562
|
-
*/(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 No=="function"&&No;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 E=r[c][1][p];return s(E||p)},v,v.exports,n,r,o,i)}return o[c].exports}for(var a=typeof No=="function"&&No,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 C=i.document.createElement("script");C.onreadystatechange=function(){p(),C.onreadystatechange=null,C.parentNode.removeChild(C),C=null},i.document.documentElement.appendChild(C)}:a=function(){setTimeout(p,0)};var d,v=[];function p(){d=!0;for(var C,w,T=v.length;T;){for(w=v,v=[],C=-1;++C<T;)w[C]();T=v.length}d=!1}r.exports=E;function E(C){v.push(C)===1&&!d&&a()}}).call(this,typeof Ho<"u"?Ho: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($){if(typeof $!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,$!==s&&E(this,$)}u.prototype.catch=function($){return this.then(null,$)},u.prototype.then=function($,_){if(typeof $!="function"&&this.state===c||typeof _!="function"&&this.state===l)return this;var b=new this.constructor(s);if(this.state!==f){var R=this.state===c?$:_;v(b,R,this.outcome)}else this.queue.push(new d(b,$,_));return b};function d($,_,b){this.promise=$,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function($){a.resolve(this.promise,$)},d.prototype.otherCallFulfilled=function($){v(this.promise,this.onFulfilled,$)},d.prototype.callRejected=function($){a.reject(this.promise,$)},d.prototype.otherCallRejected=function($){v(this.promise,this.onRejected,$)};function v($,_,b){i(function(){var R;try{R=_(b)}catch(I){return a.reject($,I)}R===$?a.reject($,new TypeError("Cannot resolve promise with itself")):a.resolve($,R)})}a.resolve=function($,_){var b=C(p,_);if(b.status==="error")return a.reject($,b.value);var R=b.value;if(R)E($,R);else{$.state=c,$.outcome=_;for(var I=-1,H=$.queue.length;++I<H;)$.queue[I].callFulfilled(_)}return $},a.reject=function($,_){$.state=l,$.outcome=_;for(var b=-1,R=$.queue.length;++b<R;)$.queue[b].callRejected(_);return $};function p($){var _=$&&$.then;if($&&(typeof $=="object"||typeof $=="function")&&typeof _=="function")return function(){_.apply($,arguments)}}function E($,_){var b=!1;function R(A){b||(b=!0,a.reject($,A))}function I(A){b||(b=!0,a.resolve($,A))}function H(){_(I,R)}var Y=C(H);Y.status==="error"&&R(Y.value)}function C($,_){var b={};try{b.value=$(_),b.status="success"}catch(R){b.status="error",b.value=R}return b}u.resolve=w;function w($){return $ instanceof this?$:a.resolve(new this(s),$)}u.reject=T;function T($){var _=new this(s);return a.reject(_,$)}u.all=D;function D($){var _=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=$.length,R=!1;if(!b)return this.resolve([]);for(var I=new Array(b),H=0,Y=-1,A=new this(s);++Y<b;)re($[Y],Y);return A;function re(he,xe){_.resolve(he).then(ce,function(X){R||(R=!0,a.reject(A,X))});function ce(X){I[xe]=X,++H===b&&!R&&(R=!0,a.resolve(A,I))}}}u.race=B;function B($){var _=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=$.length,R=!1;if(!b)return this.resolve([]);for(var I=-1,H=new this(s);++I<b;)Y($[I]);return H;function Y(A){_.resolve(A).then(function(re){R||(R=!0,a.resolve(H,re))},function(re){R||(R=!0,a.reject(H,re))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof Ho<"u"?Ho: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,x){if(!(h instanceof x))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),x=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!h||x)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(h,x){h=h||[],x=x||{};try{return new Blob(h,x)}catch(S){if(S.name!=="TypeError")throw S;for(var g=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,P=new g,O=0;O<h.length;O+=1)P.append(h[O]);return P.getBlob(x.type)}}typeof Promise>"u"&&n(3);var u=Promise;function d(h,x){x&&h.then(function(g){x(null,g)},function(g){x(g)})}function v(h,x,g){typeof x=="function"&&h.then(x),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 E(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var C="local-forage-detect-blob-support",w=void 0,T={},D=Object.prototype.toString,B="readonly",$="readwrite";function _(h){for(var x=h.length,g=new ArrayBuffer(x),P=new Uint8Array(g),O=0;O<x;O++)P[O]=h.charCodeAt(O);return g}function b(h){return new u(function(x){var g=h.transaction(C,$),P=f([""]);g.objectStore(C).put(P,"key"),g.onabort=function(O){O.preventDefault(),O.stopPropagation(),x(!1)},g.oncomplete=function(){var O=navigator.userAgent.match(/Chrome\/(\d+)/),S=navigator.userAgent.match(/Edge\//);x(S||!O||parseInt(O[1],10)>=43)}}).catch(function(){return!1})}function R(h){return typeof w=="boolean"?u.resolve(w):b(h).then(function(x){return w=x,w})}function I(h){var x=T[h.name],g={};g.promise=new u(function(P,O){g.resolve=P,g.reject=O}),x.deferredOperations.push(g),x.dbReady?x.dbReady=x.dbReady.then(function(){return g.promise}):x.dbReady=g.promise}function H(h){var x=T[h.name],g=x.deferredOperations.pop();if(g)return g.resolve(),g.promise}function Y(h,x){var g=T[h.name],P=g.deferredOperations.pop();if(P)return P.reject(x),P.promise}function A(h,x){return new u(function(g,P){if(T[h.name]=T[h.name]||Be(),h.db)if(x)I(h),h.db.close();else return g(h.db);var O=[h.name];x&&O.push(h.version);var S=l.open.apply(l,O);x&&(S.onupgradeneeded=function(L){var q=S.result;try{q.createObjectStore(h.storeName),L.oldVersion<=1&&q.createObjectStore(C)}catch(Z){if(Z.name==="ConstraintError")console.warn('The database "'+h.name+'" has been upgraded from version '+L.oldVersion+" to version "+L.newVersion+', but the storage "'+h.storeName+'" already exists.');else throw Z}}),S.onerror=function(L){L.preventDefault(),P(S.error)},S.onsuccess=function(){var L=S.result;L.onversionchange=function(q){q.target.close()},g(L),H(h)}})}function re(h){return A(h,!1)}function he(h){return A(h,!0)}function xe(h,x){if(!h.db)return!0;var g=!h.db.objectStoreNames.contains(h.storeName),P=h.version<h.db.version,O=h.version>h.db.version;if(P&&(h.version!==x&&console.warn('The database "'+h.name+`" can't be downgraded from version `+h.db.version+" to version "+h.version+"."),h.version=h.db.version),O||g){if(g){var S=h.db.version+1;S>h.version&&(h.version=S)}return!0}return!1}function ce(h){return new u(function(x,g){var P=new FileReader;P.onerror=g,P.onloadend=function(O){var S=btoa(O.target.result||"");x({__local_forage_encoded_blob:!0,data:S,type:h.type})},P.readAsBinaryString(h)})}function X(h){var x=_(atob(h.data));return f([x],{type:h.type})}function pe(h){return h&&h.__local_forage_encoded_blob}function Me(h){var x=this,g=x._initReady().then(function(){var P=T[x._dbInfo.name];if(P&&P.dbReady)return P.dbReady});return v(g,h,h),g}function Ae(h){I(h);for(var x=T[h.name],g=x.forages,P=0;P<g.length;P++){var O=g[P];O._dbInfo.db&&(O._dbInfo.db.close(),O._dbInfo.db=null)}return h.db=null,re(h).then(function(S){return h.db=S,xe(h)?he(h):S}).then(function(S){h.db=x.db=S;for(var L=0;L<g.length;L++)g[L]._dbInfo.db=S}).catch(function(S){throw Y(h,S),S})}function $e(h,x,g,P){P===void 0&&(P=1);try{var O=h.db.transaction(h.storeName,x);g(null,O)}catch(S){if(P>0&&(!h.db||S.name==="InvalidStateError"||S.name==="NotFoundError"))return u.resolve().then(function(){if(!h.db||S.name==="NotFoundError"&&!h.db.objectStoreNames.contains(h.storeName)&&h.version<=h.db.version)return h.db&&(h.version=h.db.version+1),he(h)}).then(function(){return Ae(h).then(function(){$e(h,x,g,P-1)})}).catch(g);g(S)}}function Be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function nt(h){var x=this,g={db:null};if(h)for(var P in h)g[P]=h[P];var O=T[g.name];O||(O=Be(),T[g.name]=O),O.forages.push(x),x._initReady||(x._initReady=x.ready,x.ready=Me);var S=[];function L(){return u.resolve()}for(var q=0;q<O.forages.length;q++){var Z=O.forages[q];Z!==x&&S.push(Z._initReady().catch(L))}var Q=O.forages.slice(0);return u.all(S).then(function(){return g.db=O.db,re(g)}).then(function(J){return g.db=J,xe(g,x._defaultConfig.version)?he(g):J}).then(function(J){g.db=O.db=J,x._dbInfo=g;for(var de=0;de<Q.length;de++){var Pe=Q[de];Pe!==x&&(Pe._dbInfo.db=g.db,Pe._dbInfo.version=g.version)}})}function rt(h,x){var g=this;h=p(h);var P=new u(function(O,S){g.ready().then(function(){$e(g._dbInfo,B,function(L,q){if(L)return S(L);try{var Z=q.objectStore(g._dbInfo.storeName),Q=Z.get(h);Q.onsuccess=function(){var J=Q.result;J===void 0&&(J=null),pe(J)&&(J=X(J)),O(J)},Q.onerror=function(){S(Q.error)}}catch(J){S(J)}})}).catch(S)});return d(P,x),P}function It(h,x){var g=this,P=new u(function(O,S){g.ready().then(function(){$e(g._dbInfo,B,function(L,q){if(L)return S(L);try{var Z=q.objectStore(g._dbInfo.storeName),Q=Z.openCursor(),J=1;Q.onsuccess=function(){var de=Q.result;if(de){var Pe=de.value;pe(Pe)&&(Pe=X(Pe));var De=h(Pe,de.key,J++);De!==void 0?O(De):de.continue()}else O()},Q.onerror=function(){S(Q.error)}}catch(de){S(de)}})}).catch(S)});return d(P,x),P}function Ce(h,x,g){var P=this;h=p(h);var O=new u(function(S,L){var q;P.ready().then(function(){return q=P._dbInfo,D.call(x)==="[object Blob]"?R(q.db).then(function(Z){return Z?x:ce(x)}):x}).then(function(Z){$e(P._dbInfo,$,function(Q,J){if(Q)return L(Q);try{var de=J.objectStore(P._dbInfo.storeName);Z===null&&(Z=void 0);var Pe=de.put(Z,h);J.oncomplete=function(){Z===void 0&&(Z=null),S(Z)},J.onabort=J.onerror=function(){var De=Pe.error?Pe.error:Pe.transaction.error;L(De)}}catch(De){L(De)}})}).catch(L)});return d(O,g),O}function z(h,x){var g=this;h=p(h);var P=new u(function(O,S){g.ready().then(function(){$e(g._dbInfo,$,function(L,q){if(L)return S(L);try{var Z=q.objectStore(g._dbInfo.storeName),Q=Z.delete(h);q.oncomplete=function(){O()},q.onerror=function(){S(Q.error)},q.onabort=function(){var J=Q.error?Q.error:Q.transaction.error;S(J)}}catch(J){S(J)}})}).catch(S)});return d(P,x),P}function ne(h){var x=this,g=new u(function(P,O){x.ready().then(function(){$e(x._dbInfo,$,function(S,L){if(S)return O(S);try{var q=L.objectStore(x._dbInfo.storeName),Z=q.clear();L.oncomplete=function(){P()},L.onabort=L.onerror=function(){var Q=Z.error?Z.error:Z.transaction.error;O(Q)}}catch(Q){O(Q)}})}).catch(O)});return d(g,h),g}function N(h){var x=this,g=new u(function(P,O){x.ready().then(function(){$e(x._dbInfo,B,function(S,L){if(S)return O(S);try{var q=L.objectStore(x._dbInfo.storeName),Z=q.count();Z.onsuccess=function(){P(Z.result)},Z.onerror=function(){O(Z.error)}}catch(Q){O(Q)}})}).catch(O)});return d(g,h),g}function se(h,x){var g=this,P=new u(function(O,S){if(h<0){O(null);return}g.ready().then(function(){$e(g._dbInfo,B,function(L,q){if(L)return S(L);try{var Z=q.objectStore(g._dbInfo.storeName),Q=!1,J=Z.openKeyCursor();J.onsuccess=function(){var de=J.result;if(!de){O(null);return}h===0||Q?O(de.key):(Q=!0,de.advance(h))},J.onerror=function(){S(J.error)}}catch(de){S(de)}})}).catch(S)});return d(P,x),P}function Te(h){var x=this,g=new u(function(P,O){x.ready().then(function(){$e(x._dbInfo,B,function(S,L){if(S)return O(S);try{var q=L.objectStore(x._dbInfo.storeName),Z=q.openKeyCursor(),Q=[];Z.onsuccess=function(){var J=Z.result;if(!J){P(Q);return}Q.push(J.key),J.continue()},Z.onerror=function(){O(Z.error)}}catch(J){O(J)}})}).catch(O)});return d(g,h),g}function Le(h,x){x=E.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 P=this,O;if(!h.name)O=u.reject("Invalid arguments");else{var S=h.name===g.name&&P._dbInfo.db,L=S?u.resolve(P._dbInfo.db):re(h).then(function(q){var Z=T[h.name],Q=Z.forages;Z.db=q;for(var J=0;J<Q.length;J++)Q[J]._dbInfo.db=q;return q});h.storeName?O=L.then(function(q){if(q.objectStoreNames.contains(h.storeName)){var Z=q.version+1;I(h);var Q=T[h.name],J=Q.forages;q.close();for(var de=0;de<J.length;de++){var Pe=J[de];Pe._dbInfo.db=null,Pe._dbInfo.version=Z}var De=new u(function(Fe,et){var Qe=l.open(h.name,Z);Qe.onerror=function(kt){var Sr=Qe.result;Sr.close(),et(kt)},Qe.onupgradeneeded=function(){var kt=Qe.result;kt.deleteObjectStore(h.storeName)},Qe.onsuccess=function(){var kt=Qe.result;kt.close(),Fe(kt)}});return De.then(function(Fe){Q.db=Fe;for(var et=0;et<J.length;et++){var Qe=J[et];Qe._dbInfo.db=Fe,H(Qe._dbInfo)}}).catch(function(Fe){throw(Y(h,Fe)||u.resolve()).catch(function(){}),Fe})}}):O=L.then(function(q){I(h);var Z=T[h.name],Q=Z.forages;q.close();for(var J=0;J<Q.length;J++){var de=Q[J];de._dbInfo.db=null}var Pe=new u(function(De,Fe){var et=l.deleteDatabase(h.name);et.onerror=function(){var Qe=et.result;Qe&&Qe.close(),Fe(et.error)},et.onblocked=function(){console.warn('dropInstance blocked for database "'+h.name+'" until all open connections are closed')},et.onsuccess=function(){var Qe=et.result;Qe&&Qe.close(),De(Qe)}});return Pe.then(function(De){Z.db=De;for(var Fe=0;Fe<Q.length;Fe++){var et=Q[Fe];H(et._dbInfo)}}).catch(function(De){throw(Y(h,De)||u.resolve()).catch(function(){}),De})})}return d(O,x),O}var m={_driver:"asyncStorage",_initStorage:nt,_support:c(),iterate:It,getItem:rt,setItem:Ce,removeItem:z,clear:ne,length:N,key:se,keys:Te,dropInstance:Le};function y(){return typeof openDatabase=="function"}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j="~~local_forage_type~",M=/^~~local_forage_type~([^~]+)~/,K="__lfsc__:",te=K.length,W="arbf",G="blob",V="si08",ie="ui08",fe="uic8",ae="si16",be="si32",Se="ur16",ze="ui32",Oe="fl32",Xe="fl64",lt=te+W.length,_t=Object.prototype.toString;function rn(h){var x=h.length*.75,g=h.length,P,O=0,S,L,q,Z;h[h.length-1]==="="&&(x--,h[h.length-2]==="="&&x--);var Q=new ArrayBuffer(x),J=new Uint8Array(Q);for(P=0;P<g;P+=4)S=k.indexOf(h[P]),L=k.indexOf(h[P+1]),q=k.indexOf(h[P+2]),Z=k.indexOf(h[P+3]),J[O++]=S<<2|L>>4,J[O++]=(L&15)<<4|q>>2,J[O++]=(q&3)<<6|Z&63;return Q}function ft(h){var x=new Uint8Array(h),g="",P;for(P=0;P<x.length;P+=3)g+=k[x[P]>>2],g+=k[(x[P]&3)<<4|x[P+1]>>4],g+=k[(x[P+1]&15)<<2|x[P+2]>>6],g+=k[x[P+2]&63];return x.length%3===2?g=g.substring(0,g.length-1)+"=":x.length%3===1&&(g=g.substring(0,g.length-2)+"=="),g}function wr(h,x){var g="";if(h&&(g=_t.call(h)),h&&(g==="[object ArrayBuffer]"||h.buffer&&_t.call(h.buffer)==="[object ArrayBuffer]")){var P,O=K;h instanceof ArrayBuffer?(P=h,O+=W):(P=h.buffer,g==="[object Int8Array]"?O+=V:g==="[object Uint8Array]"?O+=ie:g==="[object Uint8ClampedArray]"?O+=fe:g==="[object Int16Array]"?O+=ae:g==="[object Uint16Array]"?O+=Se:g==="[object Int32Array]"?O+=be:g==="[object Uint32Array]"?O+=ze:g==="[object Float32Array]"?O+=Oe:g==="[object Float64Array]"?O+=Xe:x(new Error("Failed to get type for BinaryArray"))),x(O+ft(P))}else if(g==="[object Blob]"){var S=new FileReader;S.onload=function(){var L=j+h.type+"~"+ft(this.result);x(K+G+L)},S.readAsArrayBuffer(h)}else try{x(JSON.stringify(h))}catch(L){console.error("Couldn't convert value into a JSON string: ",h),x(null,L)}}function U(h){if(h.substring(0,te)!==K)return JSON.parse(h);var x=h.substring(lt),g=h.substring(te,lt),P;if(g===G&&M.test(x)){var O=x.match(M);P=O[1],x=x.substring(O[0].length)}var S=rn(x);switch(g){case W:return S;case G:return f([S],{type:P});case V:return new Int8Array(S);case ie:return new Uint8Array(S);case fe:return new Uint8ClampedArray(S);case ae:return new Int16Array(S);case Se:return new Uint16Array(S);case be:return new Int32Array(S);case ze:return new Uint32Array(S);case Oe:return new Float32Array(S);case Xe:return new Float64Array(S);default:throw new Error("Unkown type: "+g)}}var oe={serialize:wr,deserialize:U,stringToBuffer:rn,bufferToString:ft};function ge(h,x,g,P){h.executeSql("CREATE TABLE IF NOT EXISTS "+x.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],g,P)}function We(h){var x=this,g={db:null};if(h)for(var P in h)g[P]=typeof h[P]!="string"?h[P].toString():h[P];var O=new u(function(S,L){try{g.db=openDatabase(g.name,String(g.version),g.description,g.size)}catch(q){return L(q)}g.db.transaction(function(q){ge(q,g,function(){x._dbInfo=g,S()},function(Z,Q){L(Q)})},L)});return g.serializer=oe,O}function Ne(h,x,g,P,O,S){h.executeSql(g,P,O,function(L,q){q.code===q.SYNTAX_ERR?L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[x.storeName],function(Z,Q){Q.rows.length?S(Z,q):ge(Z,x,function(){Z.executeSql(g,P,O,S)},S)},S):S(L,q)},S)}function dt(h,x){var g=this;h=p(h);var P=new u(function(O,S){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){Ne(q,L,"SELECT * FROM "+L.storeName+" WHERE key = ? LIMIT 1",[h],function(Z,Q){var J=Q.rows.length?Q.rows.item(0).value:null;J&&(J=L.serializer.deserialize(J)),O(J)},function(Z,Q){S(Q)})})}).catch(S)});return d(P,x),P}function St(h,x){var g=this,P=new u(function(O,S){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){Ne(q,L,"SELECT * FROM "+L.storeName,[],function(Z,Q){for(var J=Q.rows,de=J.length,Pe=0;Pe<de;Pe++){var De=J.item(Pe),Fe=De.value;if(Fe&&(Fe=L.serializer.deserialize(Fe)),Fe=h(Fe,De.key,Pe+1),Fe!==void 0){O(Fe);return}}O()},function(Z,Q){S(Q)})})}).catch(S)});return d(P,x),P}function Ve(h,x,g,P){var O=this;h=p(h);var S=new u(function(L,q){O.ready().then(function(){x===void 0&&(x=null);var Z=x,Q=O._dbInfo;Q.serializer.serialize(x,function(J,de){de?q(de):Q.db.transaction(function(Pe){Ne(Pe,Q,"INSERT OR REPLACE INTO "+Q.storeName+" (key, value) VALUES (?, ?)",[h,J],function(){L(Z)},function(De,Fe){q(Fe)})},function(Pe){if(Pe.code===Pe.QUOTA_ERR){if(P>0){L(Ve.apply(O,[h,Z,g,P-1]));return}q(Pe)}})})}).catch(q)});return d(S,g),S}function Et(h,x,g){return Ve.apply(this,[h,x,g,1])}function Sn(h,x){var g=this;h=p(h);var P=new u(function(O,S){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){Ne(q,L,"DELETE FROM "+L.storeName+" WHERE key = ?",[h],function(){O()},function(Z,Q){S(Q)})})}).catch(S)});return d(P,x),P}function Nd(h){var x=this,g=new u(function(P,O){x.ready().then(function(){var S=x._dbInfo;S.db.transaction(function(L){Ne(L,S,"DELETE FROM "+S.storeName,[],function(){P()},function(q,Z){O(Z)})})}).catch(O)});return d(g,h),g}function jd(h){var x=this,g=new u(function(P,O){x.ready().then(function(){var S=x._dbInfo;S.db.transaction(function(L){Ne(L,S,"SELECT COUNT(key) as c FROM "+S.storeName,[],function(q,Z){var Q=Z.rows.item(0).c;P(Q)},function(q,Z){O(Z)})})}).catch(O)});return d(g,h),g}function Wd(h,x){var g=this,P=new u(function(O,S){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){Ne(q,L,"SELECT key FROM "+L.storeName+" WHERE id = ? LIMIT 1",[h+1],function(Z,Q){var J=Q.rows.length?Q.rows.item(0).key:null;O(J)},function(Z,Q){S(Q)})})}).catch(S)});return d(P,x),P}function Vd(h){var x=this,g=new u(function(P,O){x.ready().then(function(){var S=x._dbInfo;S.db.transaction(function(L){Ne(L,S,"SELECT key FROM "+S.storeName,[],function(q,Z){for(var Q=[],J=0;J<Z.rows.length;J++)Q.push(Z.rows.item(J).key);P(Q)},function(q,Z){O(Z)})})}).catch(O)});return d(g,h),g}function Ud(h){return new u(function(x,g){h.transaction(function(P){P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(O,S){for(var L=[],q=0;q<S.rows.length;q++)L.push(S.rows.item(q).name);x({db:h,storeNames:L})},function(O,S){g(S)})},function(P){g(P)})})}function Kd(h,x){x=E.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 P=this,O;return h.name?O=new u(function(S){var L;h.name===g.name?L=P._dbInfo.db:L=openDatabase(h.name,"","",0),h.storeName?S({db:L,storeNames:[h.storeName]}):S(Ud(L))}).then(function(S){return new u(function(L,q){S.db.transaction(function(Z){function Q(De){return new u(function(Fe,et){Z.executeSql("DROP TABLE IF EXISTS "+De,[],function(){Fe()},function(Qe,kt){et(kt)})})}for(var J=[],de=0,Pe=S.storeNames.length;de<Pe;de++)J.push(Q(S.storeNames[de]));u.all(J).then(function(){L()}).catch(function(De){q(De)})},function(Z){q(Z)})})}):O=u.reject("Invalid arguments"),d(O,x),O}var Gd={_driver:"webSQLStorage",_initStorage:We,_support:y(),iterate:St,getItem:dt,setItem:Et,removeItem:Sn,clear:Nd,length:jd,key:Wd,keys:Vd,dropInstance:Kd};function qd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Ea(h,x){var g=h.name+"/";return h.storeName!==x.storeName&&(g+=h.storeName+"/"),g}function Yd(){var h="_localforage_support_test";try{return localStorage.setItem(h,!0),localStorage.removeItem(h),!1}catch{return!0}}function Xd(){return!Yd()||localStorage.length>0}function Zd(h){var x=this,g={};if(h)for(var P in h)g[P]=h[P];return g.keyPrefix=Ea(h,x._defaultConfig),Xd()?(x._dbInfo=g,g.serializer=oe,u.resolve()):u.reject()}function Qd(h){var x=this,g=x.ready().then(function(){for(var P=x._dbInfo.keyPrefix,O=localStorage.length-1;O>=0;O--){var S=localStorage.key(O);S.indexOf(P)===0&&localStorage.removeItem(S)}});return d(g,h),g}function Jd(h,x){var g=this;h=p(h);var P=g.ready().then(function(){var O=g._dbInfo,S=localStorage.getItem(O.keyPrefix+h);return S&&(S=O.serializer.deserialize(S)),S});return d(P,x),P}function eh(h,x){var g=this,P=g.ready().then(function(){for(var O=g._dbInfo,S=O.keyPrefix,L=S.length,q=localStorage.length,Z=1,Q=0;Q<q;Q++){var J=localStorage.key(Q);if(J.indexOf(S)===0){var de=localStorage.getItem(J);if(de&&(de=O.serializer.deserialize(de)),de=h(de,J.substring(L),Z++),de!==void 0)return de}}});return d(P,x),P}function th(h,x){var g=this,P=g.ready().then(function(){var O=g._dbInfo,S;try{S=localStorage.key(h)}catch{S=null}return S&&(S=S.substring(O.keyPrefix.length)),S});return d(P,x),P}function nh(h){var x=this,g=x.ready().then(function(){for(var P=x._dbInfo,O=localStorage.length,S=[],L=0;L<O;L++){var q=localStorage.key(L);q.indexOf(P.keyPrefix)===0&&S.push(q.substring(P.keyPrefix.length))}return S});return d(g,h),g}function rh(h){var x=this,g=x.keys().then(function(P){return P.length});return d(g,h),g}function oh(h,x){var g=this;h=p(h);var P=g.ready().then(function(){var O=g._dbInfo;localStorage.removeItem(O.keyPrefix+h)});return d(P,x),P}function ih(h,x,g){var P=this;h=p(h);var O=P.ready().then(function(){x===void 0&&(x=null);var S=x;return new u(function(L,q){var Z=P._dbInfo;Z.serializer.serialize(x,function(Q,J){if(J)q(J);else try{localStorage.setItem(Z.keyPrefix+h,Q),L(S)}catch(de){(de.name==="QuotaExceededError"||de.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q(de),q(de)}})})});return d(O,g),O}function sh(h,x){if(x=E.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 P=this,O;return h.name?O=new u(function(S){h.storeName?S(Ea(h,P._defaultConfig)):S(h.name+"/")}).then(function(S){for(var L=localStorage.length-1;L>=0;L--){var q=localStorage.key(L);q.indexOf(S)===0&&localStorage.removeItem(q)}}):O=u.reject("Invalid arguments"),d(O,x),O}var ah={_driver:"localStorageWrapper",_initStorage:Zd,_support:qd(),iterate:eh,getItem:Jd,setItem:ih,removeItem:oh,clear:Qd,length:rh,key:th,keys:nh,dropInstance:sh},lh=function(x,g){return x===g||typeof x=="number"&&typeof g=="number"&&isNaN(x)&&isNaN(g)},ch=function(x,g){for(var P=x.length,O=0;O<P;){if(lh(x[O],g))return!0;O++}return!1},Ra=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},_r={},Ta={},Kn={INDEXEDDB:m,WEBSQL:Gd,LOCALSTORAGE:ah},uh=[Kn.INDEXEDDB._driver,Kn.WEBSQL._driver,Kn.LOCALSTORAGE._driver],wo=["dropInstance"],Pi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(wo),fh={description:"",driver:uh.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function dh(h,x){h[x]=function(){var g=arguments;return h.ready().then(function(){return h[x].apply(h,g)})}}function $i(){for(var h=1;h<arguments.length;h++){var x=arguments[h];if(x)for(var g in x)x.hasOwnProperty(g)&&(Ra(x[g])?arguments[0][g]=x[g].slice():arguments[0][g]=x[g])}return arguments[0]}var hh=function(){function h(x){s(this,h);for(var g in Kn)if(Kn.hasOwnProperty(g)){var P=Kn[g],O=P._driver;this[g]=O,_r[O]||this.defineDriver(P)}this._defaultConfig=$i({},fh),this._config=$i({},this._defaultConfig,x),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 P in g){if(P==="storeName"&&(g[P]=g[P].replace(/\W/g,"_")),P==="version"&&typeof g[P]!="number")return new Error("Database version must be a number.");this._config[P]=g[P]}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,P,O){var S=new u(function(L,q){try{var Z=g._driver,Q=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!g._driver){q(Q);return}for(var J=Pi.concat("_initStorage"),de=0,Pe=J.length;de<Pe;de++){var De=J[de],Fe=!ch(wo,De);if((Fe||g[De])&&typeof g[De]!="function"){q(Q);return}}var et=function(){for(var Sr=function(gh){return function(){var mh=new Error("Method "+gh+" is not implemented by the current driver"),Pa=u.reject(mh);return d(Pa,arguments[arguments.length-1]),Pa}},Oi=0,vh=wo.length;Oi<vh;Oi++){var Ii=wo[Oi];g[Ii]||(g[Ii]=Sr(Ii))}};et();var Qe=function(Sr){_r[Z]&&console.info("Redefining LocalForage driver: "+Z),_r[Z]=g,Ta[Z]=Sr,L()};"_support"in g?g._support&&typeof g._support=="function"?g._support().then(Qe,q):Qe(!!g._support):Qe(!0)}catch(kt){q(kt)}});return v(S,P,O),S},h.prototype.driver=function(){return this._driver||null},h.prototype.getDriver=function(g,P,O){var S=_r[g]?u.resolve(_r[g]):u.reject(new Error("Driver not found."));return v(S,P,O),S},h.prototype.getSerializer=function(g){var P=u.resolve(oe);return v(P,g),P},h.prototype.ready=function(g){var P=this,O=P._driverSet.then(function(){return P._ready===null&&(P._ready=P._initDriver()),P._ready});return v(O,g,g),O},h.prototype.setDriver=function(g,P,O){var S=this;Ra(g)||(g=[g]);var L=this._getSupportedDrivers(g);function q(){S._config.driver=S.driver()}function Z(de){return S._extend(de),q(),S._ready=S._initStorage(S._config),S._ready}function Q(de){return function(){var Pe=0;function De(){for(;Pe<de.length;){var Fe=de[Pe];return Pe++,S._dbInfo=null,S._ready=null,S.getDriver(Fe).then(Z).catch(De)}q();var et=new Error("No available storage method found.");return S._driverSet=u.reject(et),S._driverSet}return De()}}var J=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=J.then(function(){var de=L[0];return S._dbInfo=null,S._ready=null,S.getDriver(de).then(function(Pe){S._driver=Pe._driver,q(),S._wrapLibraryMethodsWithReady(),S._initDriver=Q(L)})}).catch(function(){q();var de=new Error("No available storage method found.");return S._driverSet=u.reject(de),S._driverSet}),v(this._driverSet,P,O),this._driverSet},h.prototype.supports=function(g){return!!Ta[g]},h.prototype._extend=function(g){$i(this,g)},h.prototype._getSupportedDrivers=function(g){for(var P=[],O=0,S=g.length;O<S;O++){var L=g[O];this.supports(L)&&P.push(L)}return P},h.prototype._wrapLibraryMethodsWithReady=function(){for(var g=0,P=Pi.length;g<P;g++)dh(this,Pi[g])},h.prototype.createInstance=function(g){return new h(g)},h}(),ph=new hh;r.exports=ph},{3:3}]},{},[4])(4)})})(zd);var UC=zd.exports;const ri=T1(UC),KC=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"]),Ww=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:KC.has(e.origin)),GC=[/^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 GC){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},Vw=e=>location.origin+`/i/${e}`,qC=e=>`https://github.com/user-attachments/files/${e}/file.zip`,YC=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/([0-9]+)\/([0-9a-z-]+)$/,Lc="https://github.com/user-attachments/assets/",Uw=e=>{if(e.startsWith(Lc))return"https://e.gkd.li/"+e.substring(Lc.length);const{1:t,2:n}=e.match(YC)||[];return t&&n?`https://m.gkd.li/${t}/${n}`:(console.error(`github url ${e} should come from gkd-kit/inspect files/assets`),e)},Kw=e=>{try{return new URL(e)}catch{}},Ti=(e={})=>{var l;(l=e.driver)!=null||(e.driver=ri.INDEXEDDB);const t=ri.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)))}},_a=[],xo=(e,t,n)=>{const r=dr(t);let o=!1;$t(r,async()=>{o&&await ri.setItem(e,Ie(r))});const i=ri.getItem(e).then(s=>{s&&(n&&(s=n(s)),Object.assign(r,s)),o=!0});return _a.push(i),r},Co=Ti({name:"snapshot",version:1}),XC=Co.setItem;Co.setItem=async(e,t)=>{const n={...t,nodes:[]};return await Dd.setItem(e,n),XC(e,t)};const ZC=Co.removeItem;Co.removeItem=async e=>{await Promise.all([ZC(e),Dd.removeItem(e),Ld.removeItem(e),As[e]&&delete As[e]])};const Dd=Ti({name:"shallowSnapshot",version:1}),Ld=Ti({name:"screenshot",version:1}),Gw=async(e,t)=>{Object.entries(oi).forEach(([n,r])=>{r==e.id&&delete oi[n]}),Fc[e.id]&&delete Fc[e.id],ii[e.id]&&delete ii[e.id],As[e.id]=Date.now(),await Promise.all([Co.setItem(e.id,e),Ld.setItem(e.id,t)])};Ti({name:"cache",version:1});const Fd=e=>typeof e=="number"?!0:e?Array.prototype.every.call(e,t=>"0"<=t&&t<="9"):!1,oi=xo("url",{},e=>(Object.keys(e).forEach(t=>{if(Fd(t))return;const n=Md(t);n&&(e[n]=e[t]),delete e[t]}),e)),As=xo("importTime",{}),Fc=xo("githubJpg",{}),ii=xo("githubZip",{},e=>(Object.entries(e).forEach(([t,n])=>{const r=n;if(Fd(r))return;const o=Md(r);o?e[t]=+o:delete e[t]}),e)),Hc=xo("settings",{autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1}),Nc="snapshots-cache-version",ns="v2";localStorage.getItem(Nc)!==ns&&(localStorage.setItem(Nc,ns),Promise.all(_a).then(async()=>{(await(await fetch(`https://registry.npmmirror.com/@gkd-kit/assets/latest/files/assets/snapshots-${ns}.json`)).json()).forEach(n=>{ii[n.id]||(ii[n.id]=n.import_id),oi[n.import_id]||(oi[n.import_id]=n.id)})}));const QC=lg("global",{state(){return{networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0}}}),JC=gt("div",null,"生成分享链接需要以下条件",-1),ew=gt("div",null,[Nt(" 在当前浏览器登录 "),gt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1),tw=gt("div",null,"访问其它域名资源需要以下条件",-1),nw=gt("div",null,[Nt(" 1. 安装脚本管理器, 如 "),gt("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),rw=gt("div",null,[Nt(" 2. 安装油猴脚本 "),gt("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),ow=gt("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),iw=gt("div",null,[Nt(" 4. 如果是分享链接则需要在当前浏览器登录 "),gt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1),sw=gt("div",null,[Nt(" 选择器的正则表达式一致性需要使用 "),gt("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1),aw=gt("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1),lw=Ye({__name:"ErrorDlg",setup(e){const t=QC();return(n,r)=>{const o=N1,i=S1;return gi(),sv(ot,null,[qe(o,{show:ct(t).githubErrorDlgVisible,"onUpdate:show":r[0]||(r[0]=s=>ct(t).githubErrorDlgVisible=s),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:Jn(()=>[JC,ew]),_:1},8,["show"]),qe(o,{show:ct(t).networkErrorDlgVisible,"onUpdate:show":r[1]||(r[1]=s=>ct(t).networkErrorDlgVisible=s),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:Jn(()=>[tw,nw,rw,ow,iw]),_:1},8,["show"]),qe(o,{show:ct(t).wasmErrorDlgVisible,"onUpdate:show":r[3]||(r[3]=s=>ct(t).wasmErrorDlgVisible=s),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:Jn(()=>[sw,aw,qe(i,{class:"mt-10px",checked:ct(Hc).ignoreWasmWarn,"onUpdate:checked":r[2]||(r[2]=s=>ct(Hc).ignoreWasmWarn=s)},{default:Jn(()=>[Nt(" 不关注一致性, 不再提醒 ")]),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),cw=Ye({__name:"App",setup(e){return(t,n)=>{const r=R1;return gi(),ta(r,{locale:ct(Xy),"date-locale":ct(zx),abstract:""},{default:Jn(()=>[qe(lw),qe(ct(Bd))]),_:1},8,["locale","date-locale"])}}}),uw="modulepreload",fw=function(e,t){return e[0]==="."?new URL(e,t).href:e},jc={},cn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=fw(l,r),l in jc)return;jc[l]=!0;const c=l.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let v=i.length-1;v>=0;v--){const p=i[v];if(p.href===l&&(!c||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":uw,c||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((v,p)=>{d.addEventListener("load",v),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})},Wc=(e,t)=>{try{return new URL(e,t)}catch{}},Vc=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:qC(t)}}:{path:"/404"}},Hd=WC({history:bC("/"),routes:[{path:"/",component:()=>cn(()=>import("./HomePage-CCV_QClN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{path:"/snapshot/:snapshotId",name:"snapshot",component:()=>cn(()=>import("./SnapshotPage-DWWevJUE.js"),__vite__mapDeps([9,1,2,3,4,5,6,10,11]),import.meta.url)},{path:"/i",component:()=>cn(()=>import("./ImportPage-CCi6UPiJ.js"),__vite__mapDeps([12,2,3,4,7]),import.meta.url)},{path:"/i/:github_asset_id",redirect:Vc},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Vc},{path:"/device",component:()=>cn(()=>import("./DevicePage-Dw9tHC7e.js"),__vite__mapDeps([13,2,11,8,6,5,4,10]),import.meta.url),beforeEnter(e,t,n){const r=Wc(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:()=>cn(()=>import("./PreviewSharePage-DZs1PBYq.js"),__vite__mapDeps([14,2,6,10]),import.meta.url),beforeEnter(e,t,n){return e.query.url&&Wc(String(e.query.url))?n():n({path:"/404"})}},{path:"/s/:github_asset_id",component:()=>cn(()=>import("./PreviewSharePage-DZs1PBYq.js"),__vite__mapDeps([14,2,6,10]),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:()=>cn(()=>import("./SelectorPage-B5vktFbE.js"),[],import.meta.url)},{path:"/:pathMatch(.*)*",component:()=>cn(()=>import("./_404Page-GfcNDszj.js"),[],import.meta.url)}]}),dw={hash:"abe46cea21d6fbf97246049318c0999aa65d32cf",date:"2024-08-21T11:54:21+08:00",message:"chore: rm vue-i18n",refs:"grafted, HEAD -> main, origin/main",body:"",author_name:"lisonge",author_email:"i@songe.li"},hw=`GIT commit
|
|
562
|
+
*/(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 No=="function"&&No;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 E=r[c][1][p];return s(E||p)},v,v.exports,n,r,o,i)}return o[c].exports}for(var a=typeof No=="function"&&No,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 C=i.document.createElement("script");C.onreadystatechange=function(){p(),C.onreadystatechange=null,C.parentNode.removeChild(C),C=null},i.document.documentElement.appendChild(C)}:a=function(){setTimeout(p,0)};var d,v=[];function p(){d=!0;for(var C,w,T=v.length;T;){for(w=v,v=[],C=-1;++C<T;)w[C]();T=v.length}d=!1}r.exports=E;function E(C){v.push(C)===1&&!d&&a()}}).call(this,typeof Ho<"u"?Ho: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($){if(typeof $!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,$!==s&&E(this,$)}u.prototype.catch=function($){return this.then(null,$)},u.prototype.then=function($,_){if(typeof $!="function"&&this.state===c||typeof _!="function"&&this.state===l)return this;var b=new this.constructor(s);if(this.state!==f){var R=this.state===c?$:_;v(b,R,this.outcome)}else this.queue.push(new d(b,$,_));return b};function d($,_,b){this.promise=$,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function($){a.resolve(this.promise,$)},d.prototype.otherCallFulfilled=function($){v(this.promise,this.onFulfilled,$)},d.prototype.callRejected=function($){a.reject(this.promise,$)},d.prototype.otherCallRejected=function($){v(this.promise,this.onRejected,$)};function v($,_,b){i(function(){var R;try{R=_(b)}catch(I){return a.reject($,I)}R===$?a.reject($,new TypeError("Cannot resolve promise with itself")):a.resolve($,R)})}a.resolve=function($,_){var b=C(p,_);if(b.status==="error")return a.reject($,b.value);var R=b.value;if(R)E($,R);else{$.state=c,$.outcome=_;for(var I=-1,H=$.queue.length;++I<H;)$.queue[I].callFulfilled(_)}return $},a.reject=function($,_){$.state=l,$.outcome=_;for(var b=-1,R=$.queue.length;++b<R;)$.queue[b].callRejected(_);return $};function p($){var _=$&&$.then;if($&&(typeof $=="object"||typeof $=="function")&&typeof _=="function")return function(){_.apply($,arguments)}}function E($,_){var b=!1;function R(A){b||(b=!0,a.reject($,A))}function I(A){b||(b=!0,a.resolve($,A))}function H(){_(I,R)}var Y=C(H);Y.status==="error"&&R(Y.value)}function C($,_){var b={};try{b.value=$(_),b.status="success"}catch(R){b.status="error",b.value=R}return b}u.resolve=w;function w($){return $ instanceof this?$:a.resolve(new this(s),$)}u.reject=T;function T($){var _=new this(s);return a.reject(_,$)}u.all=D;function D($){var _=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=$.length,R=!1;if(!b)return this.resolve([]);for(var I=new Array(b),H=0,Y=-1,A=new this(s);++Y<b;)re($[Y],Y);return A;function re(he,xe){_.resolve(he).then(ce,function(X){R||(R=!0,a.reject(A,X))});function ce(X){I[xe]=X,++H===b&&!R&&(R=!0,a.resolve(A,I))}}}u.race=B;function B($){var _=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=$.length,R=!1;if(!b)return this.resolve([]);for(var I=-1,H=new this(s);++I<b;)Y($[I]);return H;function Y(A){_.resolve(A).then(function(re){R||(R=!0,a.resolve(H,re))},function(re){R||(R=!0,a.reject(H,re))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof Ho<"u"?Ho: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,x){if(!(h instanceof x))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),x=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!h||x)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(h,x){h=h||[],x=x||{};try{return new Blob(h,x)}catch(S){if(S.name!=="TypeError")throw S;for(var g=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,P=new g,O=0;O<h.length;O+=1)P.append(h[O]);return P.getBlob(x.type)}}typeof Promise>"u"&&n(3);var u=Promise;function d(h,x){x&&h.then(function(g){x(null,g)},function(g){x(g)})}function v(h,x,g){typeof x=="function"&&h.then(x),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 E(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var C="local-forage-detect-blob-support",w=void 0,T={},D=Object.prototype.toString,B="readonly",$="readwrite";function _(h){for(var x=h.length,g=new ArrayBuffer(x),P=new Uint8Array(g),O=0;O<x;O++)P[O]=h.charCodeAt(O);return g}function b(h){return new u(function(x){var g=h.transaction(C,$),P=f([""]);g.objectStore(C).put(P,"key"),g.onabort=function(O){O.preventDefault(),O.stopPropagation(),x(!1)},g.oncomplete=function(){var O=navigator.userAgent.match(/Chrome\/(\d+)/),S=navigator.userAgent.match(/Edge\//);x(S||!O||parseInt(O[1],10)>=43)}}).catch(function(){return!1})}function R(h){return typeof w=="boolean"?u.resolve(w):b(h).then(function(x){return w=x,w})}function I(h){var x=T[h.name],g={};g.promise=new u(function(P,O){g.resolve=P,g.reject=O}),x.deferredOperations.push(g),x.dbReady?x.dbReady=x.dbReady.then(function(){return g.promise}):x.dbReady=g.promise}function H(h){var x=T[h.name],g=x.deferredOperations.pop();if(g)return g.resolve(),g.promise}function Y(h,x){var g=T[h.name],P=g.deferredOperations.pop();if(P)return P.reject(x),P.promise}function A(h,x){return new u(function(g,P){if(T[h.name]=T[h.name]||Be(),h.db)if(x)I(h),h.db.close();else return g(h.db);var O=[h.name];x&&O.push(h.version);var S=l.open.apply(l,O);x&&(S.onupgradeneeded=function(L){var q=S.result;try{q.createObjectStore(h.storeName),L.oldVersion<=1&&q.createObjectStore(C)}catch(Z){if(Z.name==="ConstraintError")console.warn('The database "'+h.name+'" has been upgraded from version '+L.oldVersion+" to version "+L.newVersion+', but the storage "'+h.storeName+'" already exists.');else throw Z}}),S.onerror=function(L){L.preventDefault(),P(S.error)},S.onsuccess=function(){var L=S.result;L.onversionchange=function(q){q.target.close()},g(L),H(h)}})}function re(h){return A(h,!1)}function he(h){return A(h,!0)}function xe(h,x){if(!h.db)return!0;var g=!h.db.objectStoreNames.contains(h.storeName),P=h.version<h.db.version,O=h.version>h.db.version;if(P&&(h.version!==x&&console.warn('The database "'+h.name+`" can't be downgraded from version `+h.db.version+" to version "+h.version+"."),h.version=h.db.version),O||g){if(g){var S=h.db.version+1;S>h.version&&(h.version=S)}return!0}return!1}function ce(h){return new u(function(x,g){var P=new FileReader;P.onerror=g,P.onloadend=function(O){var S=btoa(O.target.result||"");x({__local_forage_encoded_blob:!0,data:S,type:h.type})},P.readAsBinaryString(h)})}function X(h){var x=_(atob(h.data));return f([x],{type:h.type})}function pe(h){return h&&h.__local_forage_encoded_blob}function Me(h){var x=this,g=x._initReady().then(function(){var P=T[x._dbInfo.name];if(P&&P.dbReady)return P.dbReady});return v(g,h,h),g}function Ae(h){I(h);for(var x=T[h.name],g=x.forages,P=0;P<g.length;P++){var O=g[P];O._dbInfo.db&&(O._dbInfo.db.close(),O._dbInfo.db=null)}return h.db=null,re(h).then(function(S){return h.db=S,xe(h)?he(h):S}).then(function(S){h.db=x.db=S;for(var L=0;L<g.length;L++)g[L]._dbInfo.db=S}).catch(function(S){throw Y(h,S),S})}function $e(h,x,g,P){P===void 0&&(P=1);try{var O=h.db.transaction(h.storeName,x);g(null,O)}catch(S){if(P>0&&(!h.db||S.name==="InvalidStateError"||S.name==="NotFoundError"))return u.resolve().then(function(){if(!h.db||S.name==="NotFoundError"&&!h.db.objectStoreNames.contains(h.storeName)&&h.version<=h.db.version)return h.db&&(h.version=h.db.version+1),he(h)}).then(function(){return Ae(h).then(function(){$e(h,x,g,P-1)})}).catch(g);g(S)}}function Be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function nt(h){var x=this,g={db:null};if(h)for(var P in h)g[P]=h[P];var O=T[g.name];O||(O=Be(),T[g.name]=O),O.forages.push(x),x._initReady||(x._initReady=x.ready,x.ready=Me);var S=[];function L(){return u.resolve()}for(var q=0;q<O.forages.length;q++){var Z=O.forages[q];Z!==x&&S.push(Z._initReady().catch(L))}var Q=O.forages.slice(0);return u.all(S).then(function(){return g.db=O.db,re(g)}).then(function(J){return g.db=J,xe(g,x._defaultConfig.version)?he(g):J}).then(function(J){g.db=O.db=J,x._dbInfo=g;for(var de=0;de<Q.length;de++){var Pe=Q[de];Pe!==x&&(Pe._dbInfo.db=g.db,Pe._dbInfo.version=g.version)}})}function rt(h,x){var g=this;h=p(h);var P=new u(function(O,S){g.ready().then(function(){$e(g._dbInfo,B,function(L,q){if(L)return S(L);try{var Z=q.objectStore(g._dbInfo.storeName),Q=Z.get(h);Q.onsuccess=function(){var J=Q.result;J===void 0&&(J=null),pe(J)&&(J=X(J)),O(J)},Q.onerror=function(){S(Q.error)}}catch(J){S(J)}})}).catch(S)});return d(P,x),P}function It(h,x){var g=this,P=new u(function(O,S){g.ready().then(function(){$e(g._dbInfo,B,function(L,q){if(L)return S(L);try{var Z=q.objectStore(g._dbInfo.storeName),Q=Z.openCursor(),J=1;Q.onsuccess=function(){var de=Q.result;if(de){var Pe=de.value;pe(Pe)&&(Pe=X(Pe));var De=h(Pe,de.key,J++);De!==void 0?O(De):de.continue()}else O()},Q.onerror=function(){S(Q.error)}}catch(de){S(de)}})}).catch(S)});return d(P,x),P}function Ce(h,x,g){var P=this;h=p(h);var O=new u(function(S,L){var q;P.ready().then(function(){return q=P._dbInfo,D.call(x)==="[object Blob]"?R(q.db).then(function(Z){return Z?x:ce(x)}):x}).then(function(Z){$e(P._dbInfo,$,function(Q,J){if(Q)return L(Q);try{var de=J.objectStore(P._dbInfo.storeName);Z===null&&(Z=void 0);var Pe=de.put(Z,h);J.oncomplete=function(){Z===void 0&&(Z=null),S(Z)},J.onabort=J.onerror=function(){var De=Pe.error?Pe.error:Pe.transaction.error;L(De)}}catch(De){L(De)}})}).catch(L)});return d(O,g),O}function z(h,x){var g=this;h=p(h);var P=new u(function(O,S){g.ready().then(function(){$e(g._dbInfo,$,function(L,q){if(L)return S(L);try{var Z=q.objectStore(g._dbInfo.storeName),Q=Z.delete(h);q.oncomplete=function(){O()},q.onerror=function(){S(Q.error)},q.onabort=function(){var J=Q.error?Q.error:Q.transaction.error;S(J)}}catch(J){S(J)}})}).catch(S)});return d(P,x),P}function ne(h){var x=this,g=new u(function(P,O){x.ready().then(function(){$e(x._dbInfo,$,function(S,L){if(S)return O(S);try{var q=L.objectStore(x._dbInfo.storeName),Z=q.clear();L.oncomplete=function(){P()},L.onabort=L.onerror=function(){var Q=Z.error?Z.error:Z.transaction.error;O(Q)}}catch(Q){O(Q)}})}).catch(O)});return d(g,h),g}function N(h){var x=this,g=new u(function(P,O){x.ready().then(function(){$e(x._dbInfo,B,function(S,L){if(S)return O(S);try{var q=L.objectStore(x._dbInfo.storeName),Z=q.count();Z.onsuccess=function(){P(Z.result)},Z.onerror=function(){O(Z.error)}}catch(Q){O(Q)}})}).catch(O)});return d(g,h),g}function se(h,x){var g=this,P=new u(function(O,S){if(h<0){O(null);return}g.ready().then(function(){$e(g._dbInfo,B,function(L,q){if(L)return S(L);try{var Z=q.objectStore(g._dbInfo.storeName),Q=!1,J=Z.openKeyCursor();J.onsuccess=function(){var de=J.result;if(!de){O(null);return}h===0||Q?O(de.key):(Q=!0,de.advance(h))},J.onerror=function(){S(J.error)}}catch(de){S(de)}})}).catch(S)});return d(P,x),P}function Te(h){var x=this,g=new u(function(P,O){x.ready().then(function(){$e(x._dbInfo,B,function(S,L){if(S)return O(S);try{var q=L.objectStore(x._dbInfo.storeName),Z=q.openKeyCursor(),Q=[];Z.onsuccess=function(){var J=Z.result;if(!J){P(Q);return}Q.push(J.key),J.continue()},Z.onerror=function(){O(Z.error)}}catch(J){O(J)}})}).catch(O)});return d(g,h),g}function Le(h,x){x=E.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 P=this,O;if(!h.name)O=u.reject("Invalid arguments");else{var S=h.name===g.name&&P._dbInfo.db,L=S?u.resolve(P._dbInfo.db):re(h).then(function(q){var Z=T[h.name],Q=Z.forages;Z.db=q;for(var J=0;J<Q.length;J++)Q[J]._dbInfo.db=q;return q});h.storeName?O=L.then(function(q){if(q.objectStoreNames.contains(h.storeName)){var Z=q.version+1;I(h);var Q=T[h.name],J=Q.forages;q.close();for(var de=0;de<J.length;de++){var Pe=J[de];Pe._dbInfo.db=null,Pe._dbInfo.version=Z}var De=new u(function(Fe,et){var Qe=l.open(h.name,Z);Qe.onerror=function(kt){var Sr=Qe.result;Sr.close(),et(kt)},Qe.onupgradeneeded=function(){var kt=Qe.result;kt.deleteObjectStore(h.storeName)},Qe.onsuccess=function(){var kt=Qe.result;kt.close(),Fe(kt)}});return De.then(function(Fe){Q.db=Fe;for(var et=0;et<J.length;et++){var Qe=J[et];Qe._dbInfo.db=Fe,H(Qe._dbInfo)}}).catch(function(Fe){throw(Y(h,Fe)||u.resolve()).catch(function(){}),Fe})}}):O=L.then(function(q){I(h);var Z=T[h.name],Q=Z.forages;q.close();for(var J=0;J<Q.length;J++){var de=Q[J];de._dbInfo.db=null}var Pe=new u(function(De,Fe){var et=l.deleteDatabase(h.name);et.onerror=function(){var Qe=et.result;Qe&&Qe.close(),Fe(et.error)},et.onblocked=function(){console.warn('dropInstance blocked for database "'+h.name+'" until all open connections are closed')},et.onsuccess=function(){var Qe=et.result;Qe&&Qe.close(),De(Qe)}});return Pe.then(function(De){Z.db=De;for(var Fe=0;Fe<Q.length;Fe++){var et=Q[Fe];H(et._dbInfo)}}).catch(function(De){throw(Y(h,De)||u.resolve()).catch(function(){}),De})})}return d(O,x),O}var m={_driver:"asyncStorage",_initStorage:nt,_support:c(),iterate:It,getItem:rt,setItem:Ce,removeItem:z,clear:ne,length:N,key:se,keys:Te,dropInstance:Le};function y(){return typeof openDatabase=="function"}var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j="~~local_forage_type~",M=/^~~local_forage_type~([^~]+)~/,K="__lfsc__:",te=K.length,W="arbf",G="blob",V="si08",ie="ui08",fe="uic8",ae="si16",be="si32",Se="ur16",ze="ui32",Oe="fl32",Xe="fl64",lt=te+W.length,_t=Object.prototype.toString;function rn(h){var x=h.length*.75,g=h.length,P,O=0,S,L,q,Z;h[h.length-1]==="="&&(x--,h[h.length-2]==="="&&x--);var Q=new ArrayBuffer(x),J=new Uint8Array(Q);for(P=0;P<g;P+=4)S=k.indexOf(h[P]),L=k.indexOf(h[P+1]),q=k.indexOf(h[P+2]),Z=k.indexOf(h[P+3]),J[O++]=S<<2|L>>4,J[O++]=(L&15)<<4|q>>2,J[O++]=(q&3)<<6|Z&63;return Q}function ft(h){var x=new Uint8Array(h),g="",P;for(P=0;P<x.length;P+=3)g+=k[x[P]>>2],g+=k[(x[P]&3)<<4|x[P+1]>>4],g+=k[(x[P+1]&15)<<2|x[P+2]>>6],g+=k[x[P+2]&63];return x.length%3===2?g=g.substring(0,g.length-1)+"=":x.length%3===1&&(g=g.substring(0,g.length-2)+"=="),g}function wr(h,x){var g="";if(h&&(g=_t.call(h)),h&&(g==="[object ArrayBuffer]"||h.buffer&&_t.call(h.buffer)==="[object ArrayBuffer]")){var P,O=K;h instanceof ArrayBuffer?(P=h,O+=W):(P=h.buffer,g==="[object Int8Array]"?O+=V:g==="[object Uint8Array]"?O+=ie:g==="[object Uint8ClampedArray]"?O+=fe:g==="[object Int16Array]"?O+=ae:g==="[object Uint16Array]"?O+=Se:g==="[object Int32Array]"?O+=be:g==="[object Uint32Array]"?O+=ze:g==="[object Float32Array]"?O+=Oe:g==="[object Float64Array]"?O+=Xe:x(new Error("Failed to get type for BinaryArray"))),x(O+ft(P))}else if(g==="[object Blob]"){var S=new FileReader;S.onload=function(){var L=j+h.type+"~"+ft(this.result);x(K+G+L)},S.readAsArrayBuffer(h)}else try{x(JSON.stringify(h))}catch(L){console.error("Couldn't convert value into a JSON string: ",h),x(null,L)}}function U(h){if(h.substring(0,te)!==K)return JSON.parse(h);var x=h.substring(lt),g=h.substring(te,lt),P;if(g===G&&M.test(x)){var O=x.match(M);P=O[1],x=x.substring(O[0].length)}var S=rn(x);switch(g){case W:return S;case G:return f([S],{type:P});case V:return new Int8Array(S);case ie:return new Uint8Array(S);case fe:return new Uint8ClampedArray(S);case ae:return new Int16Array(S);case Se:return new Uint16Array(S);case be:return new Int32Array(S);case ze:return new Uint32Array(S);case Oe:return new Float32Array(S);case Xe:return new Float64Array(S);default:throw new Error("Unkown type: "+g)}}var oe={serialize:wr,deserialize:U,stringToBuffer:rn,bufferToString:ft};function ge(h,x,g,P){h.executeSql("CREATE TABLE IF NOT EXISTS "+x.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],g,P)}function We(h){var x=this,g={db:null};if(h)for(var P in h)g[P]=typeof h[P]!="string"?h[P].toString():h[P];var O=new u(function(S,L){try{g.db=openDatabase(g.name,String(g.version),g.description,g.size)}catch(q){return L(q)}g.db.transaction(function(q){ge(q,g,function(){x._dbInfo=g,S()},function(Z,Q){L(Q)})},L)});return g.serializer=oe,O}function Ne(h,x,g,P,O,S){h.executeSql(g,P,O,function(L,q){q.code===q.SYNTAX_ERR?L.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[x.storeName],function(Z,Q){Q.rows.length?S(Z,q):ge(Z,x,function(){Z.executeSql(g,P,O,S)},S)},S):S(L,q)},S)}function dt(h,x){var g=this;h=p(h);var P=new u(function(O,S){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){Ne(q,L,"SELECT * FROM "+L.storeName+" WHERE key = ? LIMIT 1",[h],function(Z,Q){var J=Q.rows.length?Q.rows.item(0).value:null;J&&(J=L.serializer.deserialize(J)),O(J)},function(Z,Q){S(Q)})})}).catch(S)});return d(P,x),P}function St(h,x){var g=this,P=new u(function(O,S){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){Ne(q,L,"SELECT * FROM "+L.storeName,[],function(Z,Q){for(var J=Q.rows,de=J.length,Pe=0;Pe<de;Pe++){var De=J.item(Pe),Fe=De.value;if(Fe&&(Fe=L.serializer.deserialize(Fe)),Fe=h(Fe,De.key,Pe+1),Fe!==void 0){O(Fe);return}}O()},function(Z,Q){S(Q)})})}).catch(S)});return d(P,x),P}function Ve(h,x,g,P){var O=this;h=p(h);var S=new u(function(L,q){O.ready().then(function(){x===void 0&&(x=null);var Z=x,Q=O._dbInfo;Q.serializer.serialize(x,function(J,de){de?q(de):Q.db.transaction(function(Pe){Ne(Pe,Q,"INSERT OR REPLACE INTO "+Q.storeName+" (key, value) VALUES (?, ?)",[h,J],function(){L(Z)},function(De,Fe){q(Fe)})},function(Pe){if(Pe.code===Pe.QUOTA_ERR){if(P>0){L(Ve.apply(O,[h,Z,g,P-1]));return}q(Pe)}})})}).catch(q)});return d(S,g),S}function Et(h,x,g){return Ve.apply(this,[h,x,g,1])}function Sn(h,x){var g=this;h=p(h);var P=new u(function(O,S){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){Ne(q,L,"DELETE FROM "+L.storeName+" WHERE key = ?",[h],function(){O()},function(Z,Q){S(Q)})})}).catch(S)});return d(P,x),P}function Nd(h){var x=this,g=new u(function(P,O){x.ready().then(function(){var S=x._dbInfo;S.db.transaction(function(L){Ne(L,S,"DELETE FROM "+S.storeName,[],function(){P()},function(q,Z){O(Z)})})}).catch(O)});return d(g,h),g}function jd(h){var x=this,g=new u(function(P,O){x.ready().then(function(){var S=x._dbInfo;S.db.transaction(function(L){Ne(L,S,"SELECT COUNT(key) as c FROM "+S.storeName,[],function(q,Z){var Q=Z.rows.item(0).c;P(Q)},function(q,Z){O(Z)})})}).catch(O)});return d(g,h),g}function Wd(h,x){var g=this,P=new u(function(O,S){g.ready().then(function(){var L=g._dbInfo;L.db.transaction(function(q){Ne(q,L,"SELECT key FROM "+L.storeName+" WHERE id = ? LIMIT 1",[h+1],function(Z,Q){var J=Q.rows.length?Q.rows.item(0).key:null;O(J)},function(Z,Q){S(Q)})})}).catch(S)});return d(P,x),P}function Vd(h){var x=this,g=new u(function(P,O){x.ready().then(function(){var S=x._dbInfo;S.db.transaction(function(L){Ne(L,S,"SELECT key FROM "+S.storeName,[],function(q,Z){for(var Q=[],J=0;J<Z.rows.length;J++)Q.push(Z.rows.item(J).key);P(Q)},function(q,Z){O(Z)})})}).catch(O)});return d(g,h),g}function Ud(h){return new u(function(x,g){h.transaction(function(P){P.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(O,S){for(var L=[],q=0;q<S.rows.length;q++)L.push(S.rows.item(q).name);x({db:h,storeNames:L})},function(O,S){g(S)})},function(P){g(P)})})}function Kd(h,x){x=E.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 P=this,O;return h.name?O=new u(function(S){var L;h.name===g.name?L=P._dbInfo.db:L=openDatabase(h.name,"","",0),h.storeName?S({db:L,storeNames:[h.storeName]}):S(Ud(L))}).then(function(S){return new u(function(L,q){S.db.transaction(function(Z){function Q(De){return new u(function(Fe,et){Z.executeSql("DROP TABLE IF EXISTS "+De,[],function(){Fe()},function(Qe,kt){et(kt)})})}for(var J=[],de=0,Pe=S.storeNames.length;de<Pe;de++)J.push(Q(S.storeNames[de]));u.all(J).then(function(){L()}).catch(function(De){q(De)})},function(Z){q(Z)})})}):O=u.reject("Invalid arguments"),d(O,x),O}var Gd={_driver:"webSQLStorage",_initStorage:We,_support:y(),iterate:St,getItem:dt,setItem:Et,removeItem:Sn,clear:Nd,length:jd,key:Wd,keys:Vd,dropInstance:Kd};function qd(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Ea(h,x){var g=h.name+"/";return h.storeName!==x.storeName&&(g+=h.storeName+"/"),g}function Yd(){var h="_localforage_support_test";try{return localStorage.setItem(h,!0),localStorage.removeItem(h),!1}catch{return!0}}function Xd(){return!Yd()||localStorage.length>0}function Zd(h){var x=this,g={};if(h)for(var P in h)g[P]=h[P];return g.keyPrefix=Ea(h,x._defaultConfig),Xd()?(x._dbInfo=g,g.serializer=oe,u.resolve()):u.reject()}function Qd(h){var x=this,g=x.ready().then(function(){for(var P=x._dbInfo.keyPrefix,O=localStorage.length-1;O>=0;O--){var S=localStorage.key(O);S.indexOf(P)===0&&localStorage.removeItem(S)}});return d(g,h),g}function Jd(h,x){var g=this;h=p(h);var P=g.ready().then(function(){var O=g._dbInfo,S=localStorage.getItem(O.keyPrefix+h);return S&&(S=O.serializer.deserialize(S)),S});return d(P,x),P}function eh(h,x){var g=this,P=g.ready().then(function(){for(var O=g._dbInfo,S=O.keyPrefix,L=S.length,q=localStorage.length,Z=1,Q=0;Q<q;Q++){var J=localStorage.key(Q);if(J.indexOf(S)===0){var de=localStorage.getItem(J);if(de&&(de=O.serializer.deserialize(de)),de=h(de,J.substring(L),Z++),de!==void 0)return de}}});return d(P,x),P}function th(h,x){var g=this,P=g.ready().then(function(){var O=g._dbInfo,S;try{S=localStorage.key(h)}catch{S=null}return S&&(S=S.substring(O.keyPrefix.length)),S});return d(P,x),P}function nh(h){var x=this,g=x.ready().then(function(){for(var P=x._dbInfo,O=localStorage.length,S=[],L=0;L<O;L++){var q=localStorage.key(L);q.indexOf(P.keyPrefix)===0&&S.push(q.substring(P.keyPrefix.length))}return S});return d(g,h),g}function rh(h){var x=this,g=x.keys().then(function(P){return P.length});return d(g,h),g}function oh(h,x){var g=this;h=p(h);var P=g.ready().then(function(){var O=g._dbInfo;localStorage.removeItem(O.keyPrefix+h)});return d(P,x),P}function ih(h,x,g){var P=this;h=p(h);var O=P.ready().then(function(){x===void 0&&(x=null);var S=x;return new u(function(L,q){var Z=P._dbInfo;Z.serializer.serialize(x,function(Q,J){if(J)q(J);else try{localStorage.setItem(Z.keyPrefix+h,Q),L(S)}catch(de){(de.name==="QuotaExceededError"||de.name==="NS_ERROR_DOM_QUOTA_REACHED")&&q(de),q(de)}})})});return d(O,g),O}function sh(h,x){if(x=E.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 P=this,O;return h.name?O=new u(function(S){h.storeName?S(Ea(h,P._defaultConfig)):S(h.name+"/")}).then(function(S){for(var L=localStorage.length-1;L>=0;L--){var q=localStorage.key(L);q.indexOf(S)===0&&localStorage.removeItem(q)}}):O=u.reject("Invalid arguments"),d(O,x),O}var ah={_driver:"localStorageWrapper",_initStorage:Zd,_support:qd(),iterate:eh,getItem:Jd,setItem:ih,removeItem:oh,clear:Qd,length:rh,key:th,keys:nh,dropInstance:sh},lh=function(x,g){return x===g||typeof x=="number"&&typeof g=="number"&&isNaN(x)&&isNaN(g)},ch=function(x,g){for(var P=x.length,O=0;O<P;){if(lh(x[O],g))return!0;O++}return!1},Ra=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},_r={},Ta={},Kn={INDEXEDDB:m,WEBSQL:Gd,LOCALSTORAGE:ah},uh=[Kn.INDEXEDDB._driver,Kn.WEBSQL._driver,Kn.LOCALSTORAGE._driver],wo=["dropInstance"],Pi=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(wo),fh={description:"",driver:uh.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function dh(h,x){h[x]=function(){var g=arguments;return h.ready().then(function(){return h[x].apply(h,g)})}}function $i(){for(var h=1;h<arguments.length;h++){var x=arguments[h];if(x)for(var g in x)x.hasOwnProperty(g)&&(Ra(x[g])?arguments[0][g]=x[g].slice():arguments[0][g]=x[g])}return arguments[0]}var hh=function(){function h(x){s(this,h);for(var g in Kn)if(Kn.hasOwnProperty(g)){var P=Kn[g],O=P._driver;this[g]=O,_r[O]||this.defineDriver(P)}this._defaultConfig=$i({},fh),this._config=$i({},this._defaultConfig,x),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 P in g){if(P==="storeName"&&(g[P]=g[P].replace(/\W/g,"_")),P==="version"&&typeof g[P]!="number")return new Error("Database version must be a number.");this._config[P]=g[P]}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,P,O){var S=new u(function(L,q){try{var Z=g._driver,Q=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!g._driver){q(Q);return}for(var J=Pi.concat("_initStorage"),de=0,Pe=J.length;de<Pe;de++){var De=J[de],Fe=!ch(wo,De);if((Fe||g[De])&&typeof g[De]!="function"){q(Q);return}}var et=function(){for(var Sr=function(gh){return function(){var mh=new Error("Method "+gh+" is not implemented by the current driver"),Pa=u.reject(mh);return d(Pa,arguments[arguments.length-1]),Pa}},Oi=0,vh=wo.length;Oi<vh;Oi++){var Ii=wo[Oi];g[Ii]||(g[Ii]=Sr(Ii))}};et();var Qe=function(Sr){_r[Z]&&console.info("Redefining LocalForage driver: "+Z),_r[Z]=g,Ta[Z]=Sr,L()};"_support"in g?g._support&&typeof g._support=="function"?g._support().then(Qe,q):Qe(!!g._support):Qe(!0)}catch(kt){q(kt)}});return v(S,P,O),S},h.prototype.driver=function(){return this._driver||null},h.prototype.getDriver=function(g,P,O){var S=_r[g]?u.resolve(_r[g]):u.reject(new Error("Driver not found."));return v(S,P,O),S},h.prototype.getSerializer=function(g){var P=u.resolve(oe);return v(P,g),P},h.prototype.ready=function(g){var P=this,O=P._driverSet.then(function(){return P._ready===null&&(P._ready=P._initDriver()),P._ready});return v(O,g,g),O},h.prototype.setDriver=function(g,P,O){var S=this;Ra(g)||(g=[g]);var L=this._getSupportedDrivers(g);function q(){S._config.driver=S.driver()}function Z(de){return S._extend(de),q(),S._ready=S._initStorage(S._config),S._ready}function Q(de){return function(){var Pe=0;function De(){for(;Pe<de.length;){var Fe=de[Pe];return Pe++,S._dbInfo=null,S._ready=null,S.getDriver(Fe).then(Z).catch(De)}q();var et=new Error("No available storage method found.");return S._driverSet=u.reject(et),S._driverSet}return De()}}var J=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=J.then(function(){var de=L[0];return S._dbInfo=null,S._ready=null,S.getDriver(de).then(function(Pe){S._driver=Pe._driver,q(),S._wrapLibraryMethodsWithReady(),S._initDriver=Q(L)})}).catch(function(){q();var de=new Error("No available storage method found.");return S._driverSet=u.reject(de),S._driverSet}),v(this._driverSet,P,O),this._driverSet},h.prototype.supports=function(g){return!!Ta[g]},h.prototype._extend=function(g){$i(this,g)},h.prototype._getSupportedDrivers=function(g){for(var P=[],O=0,S=g.length;O<S;O++){var L=g[O];this.supports(L)&&P.push(L)}return P},h.prototype._wrapLibraryMethodsWithReady=function(){for(var g=0,P=Pi.length;g<P;g++)dh(this,Pi[g])},h.prototype.createInstance=function(g){return new h(g)},h}(),ph=new hh;r.exports=ph},{3:3}]},{},[4])(4)})})(zd);var UC=zd.exports;const ri=T1(UC),KC=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"]),Ww=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:KC.has(e.origin)),GC=[/^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 GC){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},Vw=e=>location.origin+`/i/${e}`,qC=e=>`https://github.com/user-attachments/files/${e}/file.zip`,YC=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/([0-9]+)\/([0-9a-z-]+)$/,Lc="https://github.com/user-attachments/assets/",Uw=e=>{if(e.startsWith(Lc))return"https://e.gkd.li/"+e.substring(Lc.length);const{1:t,2:n}=e.match(YC)||[];return t&&n?`https://m.gkd.li/${t}/${n}`:(console.error(`github url ${e} should come from gkd-kit/inspect files/assets`),e)},Kw=e=>{try{return new URL(e)}catch{}},Ti=(e={})=>{var l;(l=e.driver)!=null||(e.driver=ri.INDEXEDDB);const t=ri.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)))}},_a=[],xo=(e,t,n)=>{const r=dr(t);let o=!1;$t(r,async()=>{o&&await ri.setItem(e,Ie(r))});const i=ri.getItem(e).then(s=>{s&&(n&&(s=n(s)),Object.assign(r,s)),o=!0});return _a.push(i),r},Co=Ti({name:"snapshot",version:1}),XC=Co.setItem;Co.setItem=async(e,t)=>{const n={...t,nodes:[]};return await Dd.setItem(e,n),XC(e,t)};const ZC=Co.removeItem;Co.removeItem=async e=>{await Promise.all([ZC(e),Dd.removeItem(e),Ld.removeItem(e),As[e]&&delete As[e]])};const Dd=Ti({name:"shallowSnapshot",version:1}),Ld=Ti({name:"screenshot",version:1}),Gw=async(e,t)=>{Object.entries(oi).forEach(([n,r])=>{r==e.id&&delete oi[n]}),Fc[e.id]&&delete Fc[e.id],ii[e.id]&&delete ii[e.id],As[e.id]=Date.now(),await Promise.all([Co.setItem(e.id,e),Ld.setItem(e.id,t)])};Ti({name:"cache",version:1});const Fd=e=>typeof e=="number"?!0:e?Array.prototype.every.call(e,t=>"0"<=t&&t<="9"):!1,oi=xo("url",{},e=>(Object.keys(e).forEach(t=>{if(Fd(t))return;const n=Md(t);n&&(e[n]=e[t]),delete e[t]}),e)),As=xo("importTime",{}),Fc=xo("githubJpg",{}),ii=xo("githubZip",{},e=>(Object.entries(e).forEach(([t,n])=>{const r=n;if(Fd(r))return;const o=Md(r);o?e[t]=+o:delete e[t]}),e)),Hc=xo("settings",{autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1}),Nc="snapshots-cache-version",ns="v2";localStorage.getItem(Nc)!==ns&&(localStorage.setItem(Nc,ns),Promise.all(_a).then(async()=>{(await(await fetch(`https://registry.npmmirror.com/@gkd-kit/assets/latest/files/assets/snapshots-${ns}.json`)).json()).forEach(n=>{ii[n.id]||(ii[n.id]=n.import_id),oi[n.import_id]||(oi[n.import_id]=n.id)})}));const QC=lg("global",{state(){return{networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0}}}),JC=gt("div",null,"生成分享链接需要以下条件",-1),ew=gt("div",null,[Nt(" 在当前浏览器登录 "),gt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1),tw=gt("div",null,"访问其它域名资源需要以下条件",-1),nw=gt("div",null,[Nt(" 1. 安装脚本管理器, 如 "),gt("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),rw=gt("div",null,[Nt(" 2. 安装油猴脚本 "),gt("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),ow=gt("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),iw=gt("div",null,[Nt(" 4. 如果是分享链接则需要在当前浏览器登录 "),gt("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1),sw=gt("div",null,[Nt(" 选择器的正则表达式一致性需要使用 "),gt("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1),aw=gt("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1),lw=Ye({__name:"ErrorDlg",setup(e){const t=QC();return(n,r)=>{const o=N1,i=S1;return gi(),sv(ot,null,[qe(o,{show:ct(t).githubErrorDlgVisible,"onUpdate:show":r[0]||(r[0]=s=>ct(t).githubErrorDlgVisible=s),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:Jn(()=>[JC,ew]),_:1},8,["show"]),qe(o,{show:ct(t).networkErrorDlgVisible,"onUpdate:show":r[1]||(r[1]=s=>ct(t).networkErrorDlgVisible=s),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:Jn(()=>[tw,nw,rw,ow,iw]),_:1},8,["show"]),qe(o,{show:ct(t).wasmErrorDlgVisible,"onUpdate:show":r[3]||(r[3]=s=>ct(t).wasmErrorDlgVisible=s),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:Jn(()=>[sw,aw,qe(i,{class:"mt-10px",checked:ct(Hc).ignoreWasmWarn,"onUpdate:checked":r[2]||(r[2]=s=>ct(Hc).ignoreWasmWarn=s)},{default:Jn(()=>[Nt(" 不关注一致性, 不再提醒 ")]),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),cw=Ye({__name:"App",setup(e){return(t,n)=>{const r=R1;return gi(),ta(r,{locale:ct(Xy),"date-locale":ct(zx),abstract:""},{default:Jn(()=>[qe(lw),qe(ct(Bd))]),_:1},8,["locale","date-locale"])}}}),uw="modulepreload",fw=function(e,t){return e[0]==="."?new URL(e,t).href:e},jc={},cn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),a=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=fw(l,r),l in jc)return;jc[l]=!0;const c=l.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let v=i.length-1;v>=0;v--){const p=i[v];if(p.href===l&&(!c||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":uw,c||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((v,p)=>{d.addEventListener("load",v),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})},Wc=(e,t)=>{try{return new URL(e,t)}catch{}},Vc=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:qC(t)}}:{path:"/404"}},Hd=WC({history:bC("/"),routes:[{path:"/",component:()=>cn(()=>import("./HomePage-DZKgaZTl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)},{path:"/snapshot/:snapshotId",name:"snapshot",component:()=>cn(()=>import("./SnapshotPage-BtoKmreE.js"),__vite__mapDeps([9,1,2,3,4,5,6,10,11]),import.meta.url)},{path:"/i",component:()=>cn(()=>import("./ImportPage-DBrKtDF5.js"),__vite__mapDeps([12,2,3,4,7]),import.meta.url)},{path:"/i/:github_asset_id",redirect:Vc},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Vc},{path:"/device",component:()=>cn(()=>import("./DevicePage-DWVnDXb3.js"),__vite__mapDeps([13,2,11,8,6,5,4,10]),import.meta.url),beforeEnter(e,t,n){const r=Wc(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:()=>cn(()=>import("./PreviewSharePage-D6oHndWU.js"),__vite__mapDeps([14,2,10,6]),import.meta.url),beforeEnter(e,t,n){return e.query.url&&Wc(String(e.query.url))?n():n({path:"/404"})}},{path:"/s/:github_asset_id",component:()=>cn(()=>import("./PreviewSharePage-D6oHndWU.js"),__vite__mapDeps([14,2,10,6]),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:()=>cn(()=>import("./SelectorPage-DK-cX4tL.js"),[],import.meta.url)},{path:"/:pathMatch(.*)*",component:()=>cn(()=>import("./_404Page-BOCYvpci.js"),[],import.meta.url)}]}),dw={hash:"d230b5236c674e6ce7aeb89a2b0d77e39df3bd97",date:"2024-08-28T19:46:40+08:00",message:"feat: rule check",refs:"grafted, HEAD -> main, origin/main",body:"",author_name:"lisonge",author_email:"i@songe.li"},hw=`GIT commit
|
|
563
563
|
`+Object.entries(dw).filter(([e,t])=>String(t||"").trim()).map(([e,t])=>e+": "+t).join(`
|
|
564
564
|
`),pw=document.querySelector("#app");let Uc=!1;Hd.beforeEach(async(e,t,n)=>{Uc||(await Promise.all(_a).catch(console.error),Uc=!0),n()});const vw=ng(),Sa=Qv(cw);Sa.use(Hd);Sa.use(vw);Sa.mount(pw);console.log(hw);export{S1 as $,qs as A,ea as B,gi as C,sv as D,qe as E,Jn as F,ct as G,tt as H,ot as I,Nw as J,gt as K,Nt as L,Ih as M,ma as N,Cw as O,Cc as P,Wn as Q,vu as R,dr as S,$t as T,Dd as U,Wc as V,Co as W,Uw as X,_w as Y,Hc as Z,N1 as _,we as a,Qt as a$,Si as a0,Ft as a1,i1 as a2,bo as a3,Tw as a4,Vg as a5,as as a6,ll as a7,Hx as a8,gf as a9,v1 as aA,QC as aB,ii as aC,jw as aD,ww as aE,Fc as aF,Vw as aG,mw as aH,Ld as aI,cn as aJ,yd as aK,Fx as aL,aa as aM,bs as aN,bw as aO,Md as aP,Kw as aQ,oi as aR,qC as aS,Gw as aT,Ho as aU,No as aV,T1 as aW,Ef as aX,jn as aY,Wt as aZ,bt as a_,Jo as aa,Ue as ab,mg as ac,Pw as ad,hd as ae,$w as af,sa as ag,Bw as ah,b1 as ai,gd as aj,la as ak,wf as al,qn as am,go as an,Rw as ao,ia as ap,wl as aq,Mw as ar,sr as as,Bu as at,ta as au,Sp as av,Ls as aw,Fs as ax,Wp as ay,yw as az,ue as b,Jt as b$,Pt as b0,xi as b1,Vl as b2,yn as b3,Jx as b4,bd as b5,Sl as b6,pd as b7,_l as b8,$f as b9,va as bA,C0 as bB,ei as bC,Zm as bD,mr as bE,Z0 as bF,ab as bG,mo as bH,ed as bI,cr as bJ,Ci as bK,hc as bL,Xf as bM,br as bN,Qf as bO,gr as bP,Vn as bQ,Kf as bR,Uf as bS,Ss as bT,Vf as bU,Wy as bV,Qm as bW,xn as bX,Iw as bY,Dm as bZ,bg as b_,im as ba,oa as bb,kw as bc,zw as bd,ra as be,Dw as bf,om as bg,Qo as bh,tm as bi,rm as bj,Ul as bk,so as bl,As as bm,Rf as bn,ho as bo,kl as bp,Aw as bq,Dg as br,lm as bs,hm as bt,Ou as bu,Iu as bv,ha as bw,vr as bx,w0 as by,Gf as bz,Br as c,vi as c0,ys as c1,Ew as c2,ut as c3,op as c4,Ie as c5,Zi as c6,Or as c7,xx as c8,Ir as c9,yo as ca,o1 as cb,ru as cc,Ah as cd,yr as ce,ya as cf,A1 as cg,O1 as ch,Qg as ci,Xg as cj,B1 as ck,Fw as cl,Hw as cm,md as cn,gc as co,Lx as cp,Dx as cq,H1 as cr,Qv as cs,R1 as ct,pw as cu,Ww as cv,$s as cw,Lw as cx,Cr as d,ee as e,Re as f,Cs as g,Ye as h,ni as i,Ot as j,fa as k,Pf as l,le as m,Ee as n,xl as o,Sw as p,xr as q,me as r,yg as s,Ht as t,Un as u,F as v,zt as w,Kx as x,Ze as y,xw as z};
|
|
565
|
-
//# sourceMappingURL=index-
|
|
565
|
+
//# sourceMappingURL=index-C_l9cDju.js.map
|