@rozenite/sqlite-plugin 2.1.0 → 2.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @rozenite/sqlite-plugin
2
2
 
3
+ ## 2.2.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`dffeda5`](https://github.com/callstackincubator/rozenite/commit/dffeda53c57f491a303108937d4b4ce68054226f), [`4f5fe74`](https://github.com/callstackincubator/rozenite/commit/4f5fe747ca0c6e93d0bf05076c7e2e2ad25fd744)]:
8
+ - @rozenite/agent-bridge@2.2.0
9
+ - @rozenite/plugin-bridge@2.2.0
10
+
3
11
  ## 2.1.0
4
12
 
5
13
  ### Patch Changes
@@ -14,7 +14,7 @@ Error generating stack: `+d.message+`
14
14
  `,"Touch Move: "+sM(t)+`
15
15
  `,"Touch Bank: "+aM(e))}function vY(t,e){var n=e.touchBank[_O(t)];n?(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=t.pageX,n.currentPageY=t.pageY,n.currentTimeStamp=ir(t),e.mostRecentTimeStamp=ir(t)):console.warn(`Cannot record touch end without a touch start.
16
16
  `,"Touch End: "+sM(t)+`
17
- `,"Touch Bank: "+aM(e))}function sM(t){return JSON.stringify({identifier:t.identifier,pageX:t.pageX,pageY:t.pageY,timestamp:ir(t)})}function aM(t){var e=t.touchBank,n=JSON.stringify(e.slice(0,n0));return e.length>n0&&(n+=" (original size: "+e.length+")"),n}class PY{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,n){var i=this._touchHistory;if(tM(e))n.changedTouches.forEach(u=>MY(u,i));else if(eM(e))n.changedTouches.forEach(u=>yY(u,i)),i.numberActiveTouches=n.touches.length,i.numberActiveTouches===1&&(i.indexOfSingleActiveTouch=n.touches[0].identifier);else if(nM(e)&&(n.changedTouches.forEach(u=>vY(u,i)),i.numberActiveTouches=n.touches.length,i.numberActiveTouches===1))for(var r=i.touchBank,s=0;s<r.length;s++){var l=r[s];if(l!=null&&l.touchActive){i.indexOfSingleActiveTouch=s;break}}}get touchHistory(){return this._touchHistory}}var UY={},i0=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],r0=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],xY=["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}],wY={touchstart:i0,mousedown:i0,touchmove:r0,mousemove:r0,scroll:xY},zp={id:null,idPath:null,node:null},Rh=new Map,Ya=!1,Zr=0,ns={id:null,node:null,idPath:null},jp=new PY;function cE(t){ns=t}function EE(t){var e=Rh.get(t);return e??UY}function KR(t){var e=t.type,n=t.target;if(e==="touchstart"&&(Ya=!0),(e==="touchmove"||Zr>1)&&(Ya=!1),!(e==="mousedown"&&Ya||e==="mousemove"&&Ya||e==="mousemove"&&Zr<1)){if(Ya&&e==="mouseup"){Zr===0&&(Ya=!1);return}var i=eM(e)&&_Y(t),r=tM(e),s=nM(e),l=RY(e),u=AY(e),c=Zy(t,jp);(i||r||s)&&(t.touches?Zr=t.touches.length:i?Zr=1:s&&(Zr=0),jp.recordTouchTrack(e,c.nativeEvent));var f=IY(t),h=!1,T;if(i||r||l&&Zr>0){var S=ns.idPath,p=f.idPath;if(S!=null&&p!=null){var m=gY(S,p);if(m!=null){var O=p.indexOf(m),I=O+(m===ns.id?1:0);f={idPath:p.slice(I),nodePath:f.nodePath.slice(I)}}else f=null}f!=null&&(T=BY(f,t,c),T!=null&&(GY(c,T),h=!0))}if(ns.id!=null&&ns.node!=null){var g=ns,C=g.id,D=g.node,F=EE(C),U=F.onResponderStart,G=F.onResponderMove,x=F.onResponderEnd,k=F.onResponderRelease,ce=F.onResponderTerminate,q=F.onResponderTerminationRequest;if(c.bubbles=!1,c.cancelable=!1,c.currentTarget=D,i)U!=null&&(c.dispatchConfig.registrationName="onResponderStart",U(c));else if(r)G!=null&&(c.dispatchConfig.registrationName="onResponderMove",G(c));else{var Ee=iM(e)||e==="contextmenu"||e==="blur"&&n===window||e==="blur"&&n.contains(D)&&t.relatedTarget!==D||l&&Zr===0||l&&n.contains(D)&&n!==D||u&&LY(t),ae=s&&!Ee&&!CY(D,t.touches);if(s&&x!=null&&(c.dispatchConfig.registrationName="onResponderEnd",x(c)),ae&&(k!=null&&(c.dispatchConfig.registrationName="onResponderRelease",k(c)),cE(zp)),Ee){var de=!0;(e==="contextmenu"||e==="scroll"||e==="selectionchange")&&(h?de=!1:q!=null&&(c.dispatchConfig.registrationName="onResponderTerminationRequest",q(c)===!1&&(de=!1))),de&&(ce!=null&&(c.dispatchConfig.registrationName="onResponderTerminate",ce(c)),cE(zp),Ya=!1,Zr=0)}}}}}function BY(t,e,n){var i=wY[e.type];if(i!=null){for(var r=t.idPath,s=t.nodePath,l=i[0],u=i[1],c=i[2].bubbles,f=function(G,x,k){var ce=EE(G),q=ce[k];if(q!=null&&(n.currentTarget=x,q(n)===!0)){var Ee=r.slice(r.indexOf(G));return{id:G,node:x,idPath:Ee}}},h=r.length-1;h>=0;h--){var T=r[h],S=s[h],p=f(T,S,l);if(p!=null)return p;if(n.isPropagationStopped()===!0)return}if(c)for(var m=0;m<r.length;m++){var O=r[m],I=s[m],g=f(O,I,u);if(g!=null)return g;if(n.isPropagationStopped()===!0)return}else{var C=r[0],D=s[0],F=e.target;if(F===D)return f(C,D,u)}}}function GY(t,e){var n=ns,i=n.id,r=n.node,s=e.id,l=e.node,u=EE(s),c=u.onResponderGrant,f=u.onResponderReject;if(t.bubbles=!1,t.cancelable=!1,t.currentTarget=l,i==null)c!=null&&(t.currentTarget=l,t.dispatchConfig.registrationName="onResponderGrant",c(t)),cE(e);else{var h=EE(i),T=h.onResponderTerminate,S=h.onResponderTerminationRequest,p=!0;S!=null&&(t.currentTarget=r,t.dispatchConfig.registrationName="onResponderTerminationRequest",S(t)===!1&&(p=!1)),p?(T!=null&&(t.currentTarget=r,t.dispatchConfig.registrationName="onResponderTerminate",T(t)),c!=null&&(t.currentTarget=l,t.dispatchConfig.registrationName="onResponderGrant",c(t)),cE(e)):f!=null&&(t.currentTarget=l,t.dispatchConfig.registrationName="onResponderReject",f(t))}}var HY=["blur","scroll"],FY=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function YY(){Ql&&window.__reactResponderSystemActive==null&&(window.addEventListener("blur",KR),FY.forEach(t=>{document.addEventListener(t,KR)}),HY.forEach(t=>{document.addEventListener(t,KR,!0)}),window.__reactResponderSystemActive=!0)}function kY(t,e,n){NY(e,t),Rh.set(t,n)}function s0(t){ns.id===t&&VY(),Rh.has(t)&&Rh.delete(t)}function VY(){var t=ns,e=t.id,n=t.node;if(e!=null&&n!=null){var i=EE(e),r=i.onResponderTerminate;if(r!=null){var s=Zy({},jp);s.currentTarget=n,r(s)}cE(zp)}Ya=!1,Zr=0}function $Y(){return ns.node}var WY={},XY=0;function KY(t){var e=L.useRef(null);return e.current==null&&(e.current=t()),e.current}function qY(t,e){e===void 0&&(e=WY);var n=KY(()=>XY++),i=L.useRef(!1);L.useEffect(()=>(YY(),()=>{s0(n)}),[n]),L.useEffect(()=>{var r=e,s=r.onMoveShouldSetResponder,l=r.onMoveShouldSetResponderCapture,u=r.onScrollShouldSetResponder,c=r.onScrollShouldSetResponderCapture,f=r.onSelectionChangeShouldSetResponder,h=r.onSelectionChangeShouldSetResponderCapture,T=r.onStartShouldSetResponder,S=r.onStartShouldSetResponderCapture,p=s!=null||l!=null||u!=null||c!=null||f!=null||h!=null||T!=null||S!=null,m=t.current;p?(kY(n,m,e),i.current=!0):i.current&&(s0(n),i.current=!1)},[e,t,n]),L.useDebugValue({isResponder:t.current===$Y()}),L.useDebugValue(e)}var zY=L.createContext(!1),jY=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],JY=Object.assign({},VF,$F,WF,XF,KF,qF,zF,jF,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),QY=t=>JF(t,JY),Jp=L.forwardRef((t,e)=>{var n=t.hrefAttrs,i=t.onLayout,r=t.onMoveShouldSetResponder,s=t.onMoveShouldSetResponderCapture,l=t.onResponderEnd,u=t.onResponderGrant,c=t.onResponderMove,f=t.onResponderReject,h=t.onResponderRelease,T=t.onResponderStart,S=t.onResponderTerminate,p=t.onResponderTerminationRequest,m=t.onScrollShouldSetResponder,O=t.onScrollShouldSetResponderCapture,I=t.onSelectionChangeShouldSetResponder,g=t.onSelectionChangeShouldSetResponderCapture,C=t.onStartShouldSetResponder,D=t.onStartShouldSetResponderCapture,F=rT(t,jY),U=L.useContext(zY),G=L.useRef(null),x=bF(),k=x.direction;ZF(G,i),qY(G,{onMoveShouldSetResponder:r,onMoveShouldSetResponderCapture:s,onResponderEnd:l,onResponderGrant:u,onResponderMove:c,onResponderReject:f,onResponderRelease:h,onResponderStart:T,onResponderTerminate:S,onResponderTerminationRequest:p,onScrollShouldSetResponder:m,onScrollShouldSetResponderCapture:O,onSelectionChangeShouldSetResponder:I,onSelectionChangeShouldSetResponderCapture:g,onStartShouldSetResponder:C,onStartShouldSetResponderCapture:D});var ce="div",q=t.lang!=null?jy(t.lang):null,Ee=t.dir||q,ae=Ee||k,de=QY(F);if(de.dir=Ee,de.style=[a0.view$raw,U&&a0.inline,t.style],t.href!=null&&(ce="a",n!=null)){var le=n.download,Te=n.rel,B=n.target;le!=null&&(de.download=le),Te!=null&&(de.rel=Te),typeof B=="string"&&(de.target=B.charAt(0)!=="_"?"_"+B:B)}var J=iY(de),z=tY(G,J,e);return de.ref=z,DF(ce,de,{writingDirection:ae})});Jp.displayName="View";var a0=PE.create({view$raw:{alignContent:"flex-start",alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}}),qR,l0;function ZY(){if(l0)return qR;l0=1;function t(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),s=2;s<i;s++)r[s-2]=arguments[s];if(!e){var l;if(n===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;l=new Error(n.replace(/%s/g,function(){return String(r[u++])})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}return qR=t,qR}var ek=ZY();const Qd=Mi(ek);var tk=L.createContext(null),bO=L.forwardRef((t,e)=>{var n=t.children,i=t.WrapperComponent,r=L.createElement(Jp,{children:n,key:1,style:o0.appContainer});return i&&(r=L.createElement(i,null,r)),L.createElement(tk.Provider,{value:t.rootTag},L.createElement(Jp,{ref:e,style:o0.appContainer},r))});bO.displayName="AppContainer";var o0=PE.create({appContainer:{flex:1,pointerEvents:"box-none"}});function nk(t,e,n,i){var r=i.hydrate,s=i.initialProps,l=i.rootTag,u=r?xF:wF;return Qd(l,"Expect to have a valid rootTag, instead got ",l),u(ue.createElement(bO,{WrapperComponent:e,ref:n,rootTag:l},ue.createElement(t,s)),l)}function ik(t,e,n){var i=ue.createElement(bO,{WrapperComponent:n,rootTag:{}},ue.createElement(t,e)),r=s=>{var l=PE.getSheet();return ue.createElement("style",Kp({},s,{dangerouslySetInnerHTML:{__html:l.textContent},id:l.id}))};return{element:i,getStyleElement:r}}var u0={},Gs={},zR=t=>t(),bc;class fE{static getAppKeys(){return Object.keys(Gs)}static getApplication(e,n){return Qd(Gs[e]&&Gs[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),Gs[e].getApplication(n)}static registerComponent(e,n){return Gs[e]={getApplication:i=>ik(zR(n),i?i.initialProps:u0,bc&&bc(i)),run:i=>nk(zR(n),bc&&bc(i),i.callback,{hydrate:i.hydrate||!1,initialProps:i.initialProps||u0,mode:i.mode||"concurrent",rootTag:i.rootTag})},e}static registerConfig(e){e.forEach(n=>{var i=n.appKey,r=n.component,s=n.run;s?fE.registerRunnable(i,s):(Qd(r,"No component provider passed in"),fE.registerComponent(i,r))})}static registerRunnable(e,n){return Gs[e]={run:n},e}static runApplication(e,n){return Qd(Gs[e]&&Gs[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),Gs[e].run(n)}static setComponentProviderInstrumentationHook(e){zR=e}static setWrapperComponentProvider(e){bc=e}static unmountApplicationComponentAtRootTag(e){BF(e)}}var DO=Jy();const rk=Mi(DO);var jR={exports:{}},Dc={};var c0;function sk(){if(c0)return Dc;c0=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,r,s){var l=null;if(s!==void 0&&(l=""+s),r.key!==void 0&&(l=""+r.key),"key"in r){s={};for(var u in r)u!=="key"&&(s[u]=r[u])}else s=r;return r=s.ref,{$$typeof:t,type:i,key:l,ref:r!==void 0?r:null,props:s}}return Dc.Fragment=e,Dc.jsx=n,Dc.jsxs=n,Dc}var E0;function ak(){return E0||(E0=1,jR.exports=sk()),jR.exports}var _=ak();const lM=()=>typeof window<"u"&&typeof window.document<"u",lk=()=>lM()&&typeof window.__ROZENITE_WEB__<"u",ok=()=>typeof window>"u";class oM extends Error{constructor(e){super(`Unsupported platform: ${e}`),this.name="UnsupportedPlatformError"}}class uM extends Error{constructor(){super("Rozenite for web is not configured. A separate integration is required for web. Consult Rozenite docs for details."),this.name="MissingRozeniteForWebError"}}const yO="rozenite",uk=()=>{const t=self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__,e=t.BINDING_NAME;return self[e]!=null?t.initializeDomain(yO):null},ck=()=>new Promise(t=>{const e=n=>{n.name===yO&&(self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(e),setTimeout(()=>t(n)))};self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(e)}),Ek=async()=>{const t=new Set;let e=uk();e||(e=await ck());const n=()=>{if(!e)throw new Error("Domain not initialized");return e},i=r=>{r.name===yO&&(e&&t.forEach(s=>{e.onMessage.removeEventListener(s)}),e=r,t.forEach(s=>{r.onMessage.addEventListener(s)}))};return self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(i),{send:r=>{n().sendMessage(r)},onMessage(r){const s=l=>{setTimeout(()=>{r(l)})};return t.add(s),n().onMessage.addEventListener(s),{remove:()=>{t.delete(s),n().onMessage.removeEventListener(s)}}},close:()=>{self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(i)}}},fk=async()=>{if(lM()&&!lk())throw new uM;if(ok())throw new oM("server");return Ek()},dk=async()=>{const t=new Set,e=n=>{t.forEach(i=>{i(n.data)})};return window.addEventListener("message",e),{send:n=>{window.parent.postMessage({type:"rozenite-message",payload:n},"*")},onMessage:n=>(t.add(n),{remove:()=>{t.delete(n)}}),close:()=>{t.clear(),window.removeEventListener("message",e)}}};let yc=null;const hk=async()=>{if(yc)return yc;const t="__ROZENITE_PANEL__"in window?dk():fk();yc=t;try{const e=await t;return yc=e,e}catch(e){throw yc=null,e}},Tk=t=>typeof t!="object"||t===null||!("type"in t)||!("payload"in t)||!("pluginId"in t)?null:t;class f0 extends Error{constructor(e){super(`Request "${e}" was aborted.`),this.requestId=e,this.name="RozeniteDevToolsRequestAbortedError"}}class Sk extends Error{constructor(e,n){super(`Request "${e}" timed out after ${n}ms.`),this.requestId=e,this.timeoutMs=n,this.name="RozeniteDevToolsRequestTimeoutError"}}class d0 extends Error{constructor(e){super(`Request "${e}" was cancelled because the client closed.`),this.requestId=e,this.name="RozeniteDevToolsRequestClientClosedError"}}class Rk extends Error{constructor(e){super(`Request "${e.requestId}" received an error response.`),this.payload=e,this.name="RozeniteDevToolsRequestResponseError"}}const Ak=3e4;let h0=0;const pk=()=>typeof globalThis.crypto?.randomUUID=="function"?globalThis.crypto.randomUUID():(h0+=1,`rozenite-${Date.now()}-${h0}`),mk=async t=>{const e=await hk(),n=new Map,i=new Set;let r=!1;const s=async f=>{const h=Tk(f);if(!h||h.pluginId!==t)return;n.get(h.type)?.forEach(S=>{S(h.payload)})},l=(f,h)=>{e.send({pluginId:t,type:f,payload:h})},u=e.onMessage(s),c={send:l,onMessage:(f,h)=>{const T=n.get(f)??new Set;return T.add(h),n.set(f,T),{remove:()=>{T.delete(h),T.size===0&&n.delete(f)}}},request:f=>{const h=f.requestId??pk(),T=f.timeoutMs??Ak;return!Number.isFinite(T)||T<0?Promise.reject(new RangeError("timeoutMs must be a finite, non-negative number.")):r?Promise.reject(new d0(h)):f.signal?.aborted?Promise.reject(new f0(h)):new Promise((S,p)=>{let m=!1;const O=()=>{C(new f0(h))},I=()=>{F.remove(),U?.remove(),clearTimeout(G),f.signal?.removeEventListener("abort",O),i.delete(D)},g=x=>{m||(m=!0,I(),x())},C=x=>{g(()=>{p(x)})},D=()=>{C(new d0(h))},F=c.onMessage(f.responseType,x=>{x.requestId===h&&g(()=>{S(x)})}),U=f.errorType!=null?c.onMessage(f.errorType,x=>{x.requestId===h&&g(()=>{p(new Rk(x))})}):void 0;f.signal?.addEventListener("abort",O,{once:!0}),i.add(D);const G=setTimeout(()=>{C(new Sk(h,T))},T);try{c.send(f.requestType,{...f.payload,requestId:h})}catch(x){C(x instanceof Error?x:new Error(String(x)))}})},close:()=>{r||(r=!0,i.forEach(f=>{f()}),n.clear(),u.remove(),e.close())}};return c},Ok=async t=>mk(t),Nk=()=>"__ROZENITE_PANEL__"in globalThis,Ik=({pluginId:t})=>{const[e,n]=L.useState(null),[i,r]=L.useState(null);if(L.useEffect(()=>{let s=!0,l=null;const u=async()=>{try{l=await Ok(t),s&&n(l)}catch(f){if(f instanceof uM){console.warn(`[Rozenite, ${t}] Rozenite for web is not configured. A separate integration is required for web. Consult Rozenite docs for details.`);return}if(f instanceof oM){console.warn(`[Rozenite, ${t}] Unsupported platform, skipping setup.`);return}console.error(`[Rozenite, ${t}] Error setting up client.`,f),s&&r(f)}},c=async()=>{try{l?.close()}catch{}};return u(),()=>{s=!1,c()}},[t]),i!=null)throw i;return L.useEffect(()=>{if(!e||Nk())return;const s=e,l=setTimeout(()=>{s.send("plugin-mounted",{pluginId:t})},0);return()=>{clearTimeout(l)}},[e,t]),e};var gk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ck=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lk=(t,e)=>{const n=L.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:l,children:u,...c},f)=>L.createElement("svg",{ref:f,...gk,width:r,height:r,stroke:i,strokeWidth:l?Number(s)*24/Number(r):s,className:`lucide lucide-${Ck(t)}`,...c},[...e.map(([h,T])=>L.createElement(h,T)),...(Array.isArray(u)?u:[u])||[]]));return n.displayName=`${t}`,n};var en=Lk;const cM=en("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),T0=en("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),S0=en("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),R0=en("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),EM=en("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),A0=en("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),_k=en("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7.5L14.5 2H6a2 2 0 0 0-2 2v4",key:"702lig"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}]]),fM=en("FolderTree",[["path",{d:"M13 10h7a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"10jzg2"}],["path",{d:"M13 21h7a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.88a1 1 0 0 1-.9-.55l-.44-.9a1 1 0 0 0-.9-.55H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"1b9nqm"}],["path",{d:"M3 3v2c0 1.1.9 2 2 2h3",key:"1wqwis"}],["path",{d:"M3 3v13c0 1.1.9 2 2 2h3",key:"1bqeom"}]]),bk=en("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",key:"1kog09"}]]),dM=en("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),Dk=en("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]),JR=en("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),yk=en("Rows",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}]]),Mk=en("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]),p0=en("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),hM=en("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]),vk=en("TerminalSquare",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),zc=en("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Pk=en("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]),Qp=en("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Uk="@rozenite/sqlite-plugin",TM=t=>/\s/.test(t),xk=t=>{let e=0,n=!1,i=0,r=null;for(;i<t.length;){const s=t[i],l=t[i+1];if(r==="line-comment"){s===`
17
+ `,"Touch Bank: "+aM(e))}function sM(t){return JSON.stringify({identifier:t.identifier,pageX:t.pageX,pageY:t.pageY,timestamp:ir(t)})}function aM(t){var e=t.touchBank,n=JSON.stringify(e.slice(0,n0));return e.length>n0&&(n+=" (original size: "+e.length+")"),n}class PY{constructor(){this._touchHistory={touchBank:[],numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0}}recordTouchTrack(e,n){var i=this._touchHistory;if(tM(e))n.changedTouches.forEach(u=>MY(u,i));else if(eM(e))n.changedTouches.forEach(u=>yY(u,i)),i.numberActiveTouches=n.touches.length,i.numberActiveTouches===1&&(i.indexOfSingleActiveTouch=n.touches[0].identifier);else if(nM(e)&&(n.changedTouches.forEach(u=>vY(u,i)),i.numberActiveTouches=n.touches.length,i.numberActiveTouches===1))for(var r=i.touchBank,s=0;s<r.length;s++){var l=r[s];if(l!=null&&l.touchActive){i.indexOfSingleActiveTouch=s;break}}}get touchHistory(){return this._touchHistory}}var UY={},i0=["onStartShouldSetResponderCapture","onStartShouldSetResponder",{bubbles:!0}],r0=["onMoveShouldSetResponderCapture","onMoveShouldSetResponder",{bubbles:!0}],xY=["onScrollShouldSetResponderCapture","onScrollShouldSetResponder",{bubbles:!1}],wY={touchstart:i0,mousedown:i0,touchmove:r0,mousemove:r0,scroll:xY},zp={id:null,idPath:null,node:null},Rh=new Map,Ya=!1,Zr=0,ns={id:null,node:null,idPath:null},jp=new PY;function cE(t){ns=t}function EE(t){var e=Rh.get(t);return e??UY}function KR(t){var e=t.type,n=t.target;if(e==="touchstart"&&(Ya=!0),(e==="touchmove"||Zr>1)&&(Ya=!1),!(e==="mousedown"&&Ya||e==="mousemove"&&Ya||e==="mousemove"&&Zr<1)){if(Ya&&e==="mouseup"){Zr===0&&(Ya=!1);return}var i=eM(e)&&_Y(t),r=tM(e),s=nM(e),l=RY(e),u=AY(e),c=Zy(t,jp);(i||r||s)&&(t.touches?Zr=t.touches.length:i?Zr=1:s&&(Zr=0),jp.recordTouchTrack(e,c.nativeEvent));var f=IY(t),h=!1,T;if(i||r||l&&Zr>0){var S=ns.idPath,p=f.idPath;if(S!=null&&p!=null){var m=gY(S,p);if(m!=null){var O=p.indexOf(m),I=O+(m===ns.id?1:0);f={idPath:p.slice(I),nodePath:f.nodePath.slice(I)}}else f=null}f!=null&&(T=BY(f,t,c),T!=null&&(GY(c,T),h=!0))}if(ns.id!=null&&ns.node!=null){var g=ns,C=g.id,D=g.node,F=EE(C),U=F.onResponderStart,G=F.onResponderMove,x=F.onResponderEnd,k=F.onResponderRelease,ce=F.onResponderTerminate,q=F.onResponderTerminationRequest;if(c.bubbles=!1,c.cancelable=!1,c.currentTarget=D,i)U!=null&&(c.dispatchConfig.registrationName="onResponderStart",U(c));else if(r)G!=null&&(c.dispatchConfig.registrationName="onResponderMove",G(c));else{var Ee=iM(e)||e==="contextmenu"||e==="blur"&&n===window||e==="blur"&&n.contains(D)&&t.relatedTarget!==D||l&&Zr===0||l&&n.contains(D)&&n!==D||u&&LY(t),ae=s&&!Ee&&!CY(D,t.touches);if(s&&x!=null&&(c.dispatchConfig.registrationName="onResponderEnd",x(c)),ae&&(k!=null&&(c.dispatchConfig.registrationName="onResponderRelease",k(c)),cE(zp)),Ee){var de=!0;(e==="contextmenu"||e==="scroll"||e==="selectionchange")&&(h?de=!1:q!=null&&(c.dispatchConfig.registrationName="onResponderTerminationRequest",q(c)===!1&&(de=!1))),de&&(ce!=null&&(c.dispatchConfig.registrationName="onResponderTerminate",ce(c)),cE(zp),Ya=!1,Zr=0)}}}}}function BY(t,e,n){var i=wY[e.type];if(i!=null){for(var r=t.idPath,s=t.nodePath,l=i[0],u=i[1],c=i[2].bubbles,f=function(G,x,k){var ce=EE(G),q=ce[k];if(q!=null&&(n.currentTarget=x,q(n)===!0)){var Ee=r.slice(r.indexOf(G));return{id:G,node:x,idPath:Ee}}},h=r.length-1;h>=0;h--){var T=r[h],S=s[h],p=f(T,S,l);if(p!=null)return p;if(n.isPropagationStopped()===!0)return}if(c)for(var m=0;m<r.length;m++){var O=r[m],I=s[m],g=f(O,I,u);if(g!=null)return g;if(n.isPropagationStopped()===!0)return}else{var C=r[0],D=s[0],F=e.target;if(F===D)return f(C,D,u)}}}function GY(t,e){var n=ns,i=n.id,r=n.node,s=e.id,l=e.node,u=EE(s),c=u.onResponderGrant,f=u.onResponderReject;if(t.bubbles=!1,t.cancelable=!1,t.currentTarget=l,i==null)c!=null&&(t.currentTarget=l,t.dispatchConfig.registrationName="onResponderGrant",c(t)),cE(e);else{var h=EE(i),T=h.onResponderTerminate,S=h.onResponderTerminationRequest,p=!0;S!=null&&(t.currentTarget=r,t.dispatchConfig.registrationName="onResponderTerminationRequest",S(t)===!1&&(p=!1)),p?(T!=null&&(t.currentTarget=r,t.dispatchConfig.registrationName="onResponderTerminate",T(t)),c!=null&&(t.currentTarget=l,t.dispatchConfig.registrationName="onResponderGrant",c(t)),cE(e)):f!=null&&(t.currentTarget=l,t.dispatchConfig.registrationName="onResponderReject",f(t))}}var HY=["blur","scroll"],FY=["mousedown","mousemove","mouseup","dragstart","touchstart","touchmove","touchend","touchcancel","contextmenu","select","selectionchange"];function YY(){Ql&&window.__reactResponderSystemActive==null&&(window.addEventListener("blur",KR),FY.forEach(t=>{document.addEventListener(t,KR)}),HY.forEach(t=>{document.addEventListener(t,KR,!0)}),window.__reactResponderSystemActive=!0)}function kY(t,e,n){NY(e,t),Rh.set(t,n)}function s0(t){ns.id===t&&VY(),Rh.has(t)&&Rh.delete(t)}function VY(){var t=ns,e=t.id,n=t.node;if(e!=null&&n!=null){var i=EE(e),r=i.onResponderTerminate;if(r!=null){var s=Zy({},jp);s.currentTarget=n,r(s)}cE(zp)}Ya=!1,Zr=0}function $Y(){return ns.node}var WY={},XY=0;function KY(t){var e=L.useRef(null);return e.current==null&&(e.current=t()),e.current}function qY(t,e){e===void 0&&(e=WY);var n=KY(()=>XY++),i=L.useRef(!1);L.useEffect(()=>(YY(),()=>{s0(n)}),[n]),L.useEffect(()=>{var r=e,s=r.onMoveShouldSetResponder,l=r.onMoveShouldSetResponderCapture,u=r.onScrollShouldSetResponder,c=r.onScrollShouldSetResponderCapture,f=r.onSelectionChangeShouldSetResponder,h=r.onSelectionChangeShouldSetResponderCapture,T=r.onStartShouldSetResponder,S=r.onStartShouldSetResponderCapture,p=s!=null||l!=null||u!=null||c!=null||f!=null||h!=null||T!=null||S!=null,m=t.current;p?(kY(n,m,e),i.current=!0):i.current&&(s0(n),i.current=!1)},[e,t,n]),L.useDebugValue({isResponder:t.current===$Y()}),L.useDebugValue(e)}var zY=L.createContext(!1),jY=["hrefAttrs","onLayout","onMoveShouldSetResponder","onMoveShouldSetResponderCapture","onResponderEnd","onResponderGrant","onResponderMove","onResponderReject","onResponderRelease","onResponderStart","onResponderTerminate","onResponderTerminationRequest","onScrollShouldSetResponder","onScrollShouldSetResponderCapture","onSelectionChangeShouldSetResponder","onSelectionChangeShouldSetResponderCapture","onStartShouldSetResponder","onStartShouldSetResponderCapture"],JY=Object.assign({},VF,$F,WF,XF,KF,qF,zF,jF,{href:!0,lang:!0,onScroll:!0,onWheel:!0,pointerEvents:!0}),QY=t=>JF(t,JY),Jp=L.forwardRef((t,e)=>{var n=t.hrefAttrs,i=t.onLayout,r=t.onMoveShouldSetResponder,s=t.onMoveShouldSetResponderCapture,l=t.onResponderEnd,u=t.onResponderGrant,c=t.onResponderMove,f=t.onResponderReject,h=t.onResponderRelease,T=t.onResponderStart,S=t.onResponderTerminate,p=t.onResponderTerminationRequest,m=t.onScrollShouldSetResponder,O=t.onScrollShouldSetResponderCapture,I=t.onSelectionChangeShouldSetResponder,g=t.onSelectionChangeShouldSetResponderCapture,C=t.onStartShouldSetResponder,D=t.onStartShouldSetResponderCapture,F=rT(t,jY),U=L.useContext(zY),G=L.useRef(null),x=bF(),k=x.direction;ZF(G,i),qY(G,{onMoveShouldSetResponder:r,onMoveShouldSetResponderCapture:s,onResponderEnd:l,onResponderGrant:u,onResponderMove:c,onResponderReject:f,onResponderRelease:h,onResponderStart:T,onResponderTerminate:S,onResponderTerminationRequest:p,onScrollShouldSetResponder:m,onScrollShouldSetResponderCapture:O,onSelectionChangeShouldSetResponder:I,onSelectionChangeShouldSetResponderCapture:g,onStartShouldSetResponder:C,onStartShouldSetResponderCapture:D});var ce="div",q=t.lang!=null?jy(t.lang):null,Ee=t.dir||q,ae=Ee||k,de=QY(F);if(de.dir=Ee,de.style=[a0.view$raw,U&&a0.inline,t.style],t.href!=null&&(ce="a",n!=null)){var le=n.download,Te=n.rel,B=n.target;le!=null&&(de.download=le),Te!=null&&(de.rel=Te),typeof B=="string"&&(de.target=B.charAt(0)!=="_"?"_"+B:B)}var J=iY(de),z=tY(G,J,e);return de.ref=z,DF(ce,de,{writingDirection:ae})});Jp.displayName="View";var a0=PE.create({view$raw:{alignContent:"flex-start",alignItems:"stretch",backgroundColor:"transparent",border:"0 solid black",boxSizing:"border-box",display:"flex",flexBasis:"auto",flexDirection:"column",flexShrink:0,listStyle:"none",margin:0,minHeight:0,minWidth:0,padding:0,position:"relative",textDecoration:"none",zIndex:0},inline:{display:"inline-flex"}}),qR,l0;function ZY(){if(l0)return qR;l0=1;function t(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),s=2;s<i;s++)r[s-2]=arguments[s];if(!e){var l;if(n===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;l=new Error(n.replace(/%s/g,function(){return String(r[u++])})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}return qR=t,qR}var ek=ZY();const Qd=Mi(ek);var tk=L.createContext(null),bO=L.forwardRef((t,e)=>{var n=t.children,i=t.WrapperComponent,r=L.createElement(Jp,{children:n,key:1,style:o0.appContainer});return i&&(r=L.createElement(i,null,r)),L.createElement(tk.Provider,{value:t.rootTag},L.createElement(Jp,{ref:e,style:o0.appContainer},r))});bO.displayName="AppContainer";var o0=PE.create({appContainer:{flex:1,pointerEvents:"box-none"}});function nk(t,e,n,i){var r=i.hydrate,s=i.initialProps,l=i.rootTag,u=r?xF:wF;return Qd(l,"Expect to have a valid rootTag, instead got ",l),u(ue.createElement(bO,{WrapperComponent:e,ref:n,rootTag:l},ue.createElement(t,s)),l)}function ik(t,e,n){var i=ue.createElement(bO,{WrapperComponent:n,rootTag:{}},ue.createElement(t,e)),r=s=>{var l=PE.getSheet();return ue.createElement("style",Kp({},s,{dangerouslySetInnerHTML:{__html:l.textContent},id:l.id}))};return{element:i,getStyleElement:r}}var u0={},Gs={},zR=t=>t(),bc;class fE{static getAppKeys(){return Object.keys(Gs)}static getApplication(e,n){return Qd(Gs[e]&&Gs[e].getApplication,"Application "+e+" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent."),Gs[e].getApplication(n)}static registerComponent(e,n){return Gs[e]={getApplication:i=>ik(zR(n),i?i.initialProps:u0,bc&&bc(i)),run:i=>nk(zR(n),bc&&bc(i),i.callback,{hydrate:i.hydrate||!1,initialProps:i.initialProps||u0,mode:i.mode||"concurrent",rootTag:i.rootTag})},e}static registerConfig(e){e.forEach(n=>{var i=n.appKey,r=n.component,s=n.run;s?fE.registerRunnable(i,s):(Qd(r,"No component provider passed in"),fE.registerComponent(i,r))})}static registerRunnable(e,n){return Gs[e]={run:n},e}static runApplication(e,n){return Qd(Gs[e]&&Gs[e].run,'Application "'+e+'" has not been registered. This is either due to an import error during initialization or failure to call AppRegistry.registerComponent.'),Gs[e].run(n)}static setComponentProviderInstrumentationHook(e){zR=e}static setWrapperComponentProvider(e){bc=e}static unmountApplicationComponentAtRootTag(e){BF(e)}}var DO=Jy();const rk=Mi(DO);var jR={exports:{}},Dc={};var c0;function sk(){if(c0)return Dc;c0=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,r,s){var l=null;if(s!==void 0&&(l=""+s),r.key!==void 0&&(l=""+r.key),"key"in r){s={};for(var u in r)u!=="key"&&(s[u]=r[u])}else s=r;return r=s.ref,{$$typeof:t,type:i,key:l,ref:r!==void 0?r:null,props:s}}return Dc.Fragment=e,Dc.jsx=n,Dc.jsxs=n,Dc}var E0;function ak(){return E0||(E0=1,jR.exports=sk()),jR.exports}var _=ak();const lM=()=>typeof window<"u"&&typeof window.document<"u",lk=()=>lM()&&typeof window.__ROZENITE_WEB__<"u",ok=()=>typeof window>"u";class oM extends Error{constructor(e){super(`Unsupported platform: ${e}`),this.name="UnsupportedPlatformError"}}class uM extends Error{constructor(){super("Rozenite for web is not configured. A separate integration is required for web. Consult Rozenite docs for details."),this.name="MissingRozeniteForWebError"}}const yO="rozenite",uk=()=>{const t=self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__,e=t.BINDING_NAME;return self[e]!=null?t.initializeDomain(yO):null},ck=()=>new Promise(t=>{const e=n=>{n.name===yO&&(self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(e),setTimeout(()=>t(n)))};self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(e)}),Ek=async()=>{const t=new Set;let e=uk();e||(e=await ck());const n=()=>{if(!e)throw new Error("Domain not initialized");return e},i=r=>{r.name===yO&&(e&&t.forEach(s=>{e.onMessage.removeEventListener(s)}),e=r,t.forEach(s=>{r.onMessage.addEventListener(s)}))};return self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.addEventListener(i),{send:r=>{n().sendMessage(r)},onMessage(r){const s=l=>{setTimeout(()=>{r(l)})};return t.add(s),n().onMessage.addEventListener(s),{remove:()=>{t.delete(s),n().onMessage.removeEventListener(s)}}},close:()=>{self.__FUSEBOX_REACT_DEVTOOLS_DISPATCHER__.onDomainInitialization.removeEventListener(i)}}},fk=async()=>{if(lM()&&!lk())throw new uM;if(ok())throw new oM("server");return Ek()},dk=async()=>{const t=new Set,e=n=>{t.forEach(i=>{i(n.data)})};return window.addEventListener("message",e),{send:n=>{window.parent.postMessage({type:"rozenite-message",payload:n},"*")},onMessage:n=>(t.add(n),{remove:()=>{t.delete(n)}}),close:()=>{t.clear(),window.removeEventListener("message",e)}}};let yc=null;const hk=async()=>{if(yc)return yc;const t="__ROZENITE_PANEL__"in window?dk():fk();yc=t;try{const e=await t;return yc=e,e}catch(e){throw yc=null,e}},Tk=t=>typeof t!="object"||t===null||typeof t.pluginId!="string"||!("type"in t)||!("payload"in t)?null:t;class f0 extends Error{constructor(e){super(`Request "${e}" was aborted.`),this.requestId=e,this.name="RozeniteDevToolsRequestAbortedError"}}class Sk extends Error{constructor(e,n){super(`Request "${e}" timed out after ${n}ms.`),this.requestId=e,this.timeoutMs=n,this.name="RozeniteDevToolsRequestTimeoutError"}}class d0 extends Error{constructor(e){super(`Request "${e}" was cancelled because the client closed.`),this.requestId=e,this.name="RozeniteDevToolsRequestClientClosedError"}}class Rk extends Error{constructor(e){super(`Request "${e.requestId}" received an error response.`),this.payload=e,this.name="RozeniteDevToolsRequestResponseError"}}const Ak=3e4;let h0=0;const pk=()=>typeof globalThis.crypto?.randomUUID=="function"?globalThis.crypto.randomUUID():(h0+=1,`rozenite-${Date.now()}-${h0}`),mk=async t=>{const e=await hk(),n=new Map,i=new Set;let r=!1;const s=async f=>{const h=Tk(f);if(!h||h.pluginId!==t)return;n.get(h.type)?.forEach(S=>{S(h.payload)})},l=(f,h)=>{e.send({pluginId:t,type:f,payload:h})},u=e.onMessage(s),c={send:l,onMessage:(f,h)=>{const T=n.get(f)??new Set;return T.add(h),n.set(f,T),{remove:()=>{T.delete(h),T.size===0&&n.delete(f)}}},request:f=>{const h=f.requestId??pk(),T=f.timeoutMs??Ak;return!Number.isFinite(T)||T<0?Promise.reject(new RangeError("timeoutMs must be a finite, non-negative number.")):r?Promise.reject(new d0(h)):f.signal?.aborted?Promise.reject(new f0(h)):new Promise((S,p)=>{let m=!1;const O=()=>{C(new f0(h))},I=()=>{F.remove(),U?.remove(),clearTimeout(G),f.signal?.removeEventListener("abort",O),i.delete(D)},g=x=>{m||(m=!0,I(),x())},C=x=>{g(()=>{p(x)})},D=()=>{C(new d0(h))},F=c.onMessage(f.responseType,x=>{x.requestId===h&&g(()=>{S(x)})}),U=f.errorType!=null?c.onMessage(f.errorType,x=>{x.requestId===h&&g(()=>{p(new Rk(x))})}):void 0;f.signal?.addEventListener("abort",O,{once:!0}),i.add(D);const G=setTimeout(()=>{C(new Sk(h,T))},T);try{c.send(f.requestType,{...f.payload,requestId:h})}catch(x){C(x instanceof Error?x:new Error(String(x)))}})},close:()=>{r||(r=!0,i.forEach(f=>{f()}),n.clear(),u.remove(),e.close())}};return c},Ok=async t=>mk(t),Nk=()=>"__ROZENITE_PANEL__"in globalThis,Ik=({pluginId:t})=>{const[e,n]=L.useState(null),[i,r]=L.useState(null);if(L.useEffect(()=>{let s=!0,l=null;const u=async()=>{try{l=await Ok(t),s&&n(l)}catch(f){if(f instanceof uM){console.warn(`[Rozenite, ${t}] Rozenite for web is not configured. A separate integration is required for web. Consult Rozenite docs for details.`);return}if(f instanceof oM){console.warn(`[Rozenite, ${t}] Unsupported platform, skipping setup.`);return}console.error(`[Rozenite, ${t}] Error setting up client.`,f),s&&r(f)}},c=async()=>{try{l?.close()}catch{}};return u(),()=>{s=!1,c()}},[t]),i!=null)throw i;return L.useEffect(()=>{if(!e||Nk())return;const s=e,l=setTimeout(()=>{s.send("plugin-mounted",{pluginId:t})},0);return()=>{clearTimeout(l)}},[e,t]),e};var gk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Ck=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Lk=(t,e)=>{const n=L.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:l,children:u,...c},f)=>L.createElement("svg",{ref:f,...gk,width:r,height:r,stroke:i,strokeWidth:l?Number(s)*24/Number(r):s,className:`lucide lucide-${Ck(t)}`,...c},[...e.map(([h,T])=>L.createElement(h,T)),...(Array.isArray(u)?u:[u])||[]]));return n.displayName=`${t}`,n};var en=Lk;const cM=en("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),T0=en("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),S0=en("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),R0=en("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),EM=en("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),A0=en("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),_k=en("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7.5L14.5 2H6a2 2 0 0 0-2 2v4",key:"702lig"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}]]),fM=en("FolderTree",[["path",{d:"M13 10h7a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"10jzg2"}],["path",{d:"M13 21h7a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.88a1 1 0 0 1-.9-.55l-.44-.9a1 1 0 0 0-.9-.55H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"1b9nqm"}],["path",{d:"M3 3v2c0 1.1.9 2 2 2h3",key:"1wqwis"}],["path",{d:"M3 3v13c0 1.1.9 2 2 2h3",key:"1bqeom"}]]),bk=en("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",key:"1kog09"}]]),dM=en("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),Dk=en("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]),JR=en("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),yk=en("Rows",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"12",y2:"12",key:"10d38w"}]]),Mk=en("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]),p0=en("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),hM=en("Table2",[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]]),vk=en("TerminalSquare",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]),zc=en("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Pk=en("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]),Qp=en("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Uk="@rozenite/sqlite-plugin",TM=t=>/\s/.test(t),xk=t=>{let e=0,n=!1,i=0,r=null;for(;i<t.length;){const s=t[i],l=t[i+1];if(r==="line-comment"){s===`
18
18
  `&&(r=null),i+=1;continue}if(r==="block-comment"){if(s==="*"&&l==="/"){r=null,i+=2;continue}i+=1;continue}if(r==="single-quote"){if(s==="'"&&l==="'"){i+=2;continue}s==="'"&&(r=null),i+=1;continue}if(r==="double-quote"){if(s==='"'&&l==='"'){i+=2;continue}s==='"'&&(r=null),i+=1;continue}if(r==="backtick"){if(s==="`"&&l==="`"){i+=2;continue}s==="`"&&(r=null),i+=1;continue}if(r==="bracket"){if(s==="]"&&l==="]"){i+=2;continue}s==="]"&&(r=null),i+=1;continue}if(s==="-"&&l==="-"){r="line-comment",i+=2;continue}if(s==="/"&&l==="*"){r="block-comment",i+=2;continue}if(s==="'"){r="single-quote",n=!0,i+=1;continue}if(s==='"'){r="double-quote",n=!0,i+=1;continue}if(s==="`"){r="backtick",n=!0,i+=1;continue}if(s==="["){r="bracket",n=!0,i+=1;continue}if(s===";"){n&&(e+=1,n=!1),i+=1;continue}TM(s)||(n=!0),i+=1}return n&&(e+=1),e},SM=t=>{const e=[];let n=!1,i=0,r=0,s=null;const l=u=>{const c=t.slice(i,u).trim();c&&e.push({text:c,start:i,end:u}),i=u+1,n=!1};for(;r<t.length;){const u=t[r],c=t[r+1];if(s==="line-comment"){u===`
19
19
  `&&(s=null),r+=1;continue}if(s==="block-comment"){if(u==="*"&&c==="/"){s=null,r+=2;continue}r+=1;continue}if(s==="single-quote"){if(u==="'"&&c==="'"){r+=2;continue}u==="'"&&(s=null),r+=1;continue}if(s==="double-quote"){if(u==='"'&&c==='"'){r+=2;continue}u==='"'&&(s=null),r+=1;continue}if(s==="backtick"){if(u==="`"&&c==="`"){r+=2;continue}u==="`"&&(s=null),r+=1;continue}if(s==="bracket"){if(u==="]"&&c==="]"){r+=2;continue}u==="]"&&(s=null),r+=1;continue}if(u==="-"&&c==="-"){s="line-comment",r+=2;continue}if(u==="/"&&c==="*"){s="block-comment",r+=2;continue}if(u==="'"){s="single-quote",n=!0,r+=1;continue}if(u==='"'){s="double-quote",n=!0,r+=1;continue}if(u==="`"){s="backtick",n=!0,r+=1;continue}if(u==="["){s="bracket",n=!0,r+=1;continue}if(u===";"){n?l(r):i=r+1,r+=1;continue}TM(u)||(n=!0),r+=1}return n&&l(t.length),e},wk=(t,e)=>{const n=SM(t);return n.length===0?null:n.find(r=>e>=r.start&&e<=r.end+1)??n[0]},Bk=t=>{const e=xk(t);if(e===0)throw new Error("Query cannot be empty.");if(e>1)throw new Error("Only a single SQL statement is supported in v1.");return t.trim().replace(/;\s*$/,"").trim()},Dr=t=>`"${t.replace(/"/g,'""')}"`,aT=t=>`'${t.replace(/'/g,"''")}'`,RM=(t,e)=>`${Dr(t)}.${Dr(e)}`,lT=t=>`${Dr(t)}.`,Li=t=>typeof t=="string"?t:String(t??""),oT=t=>t==null?null:String(t),_i=t=>{const e=Number(t??0);return Number.isNaN(e)?0:e},Gk="PRAGMA database_list",Hk=t=>`
20
20
  SELECT
@@ -22,7 +22,7 @@
22
22
  <script>
23
23
  var __ROZENITE_PANEL__ = true;
24
24
  </script>
25
- <script type="module" crossorigin src="../devtools/assets/panel-BsdCagVv.js"></script>
25
+ <script type="module" crossorigin src="../devtools/assets/panel-B2O8mY15.js"></script>
26
26
  <link rel="stylesheet" crossorigin href="../devtools/assets/panel-BarPLQ4-.css">
27
27
  </head>
28
28
  <body>
@@ -1 +1 @@
1
- {"name":"@rozenite/sqlite-plugin","version":"2.1.0","description":"SQLite inspector for Rozenite.","panels":[{"name":"SQLite","source":"/devtools/panel.html"}]}
1
+ {"name":"@rozenite/sqlite-plugin","version":"2.2.0","description":"SQLite inspector for Rozenite.","panels":[{"name":"SQLite","source":"/devtools/panel.html"}]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rozenite/sqlite-plugin",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "SQLite inspector for Rozenite.",
5
5
  "homepage": "https://github.com/callstackincubator/rozenite#readme",
6
6
  "bugs": {
@@ -27,8 +27,8 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@rozenite/agent-bridge": "2.1.0",
31
- "@rozenite/plugin-bridge": "2.1.0"
30
+ "@rozenite/agent-bridge": "2.2.0",
31
+ "@rozenite/plugin-bridge": "2.2.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@codemirror/autocomplete": "^6.20.1",
@@ -57,8 +57,8 @@
57
57
  "typescript": "~5.9.3",
58
58
  "vite": "^7.3.1",
59
59
  "vitest": "^3.2.4",
60
- "@rozenite/vite-plugin": "2.1.0",
61
- "rozenite": "2.1.0"
60
+ "@rozenite/vite-plugin": "2.2.0",
61
+ "rozenite": "2.2.0"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "expo-sqlite": "*",
package/tsconfig.json CHANGED
@@ -11,10 +11,7 @@
11
11
  "noFallthroughCasesInSwitch": true,
12
12
  "module": "ESNext",
13
13
  "moduleResolution": "bundler",
14
- "baseUrl": ".",
15
- "paths": {
16
- "@rozenite/plugin-bridge": ["../plugin-bridge/src/index.ts"]
17
- },
14
+ "customConditions": ["development"],
18
15
  "resolveJsonModule": true,
19
16
  "isolatedModules": true,
20
17
  "noEmit": true,
@@ -23,6 +20,9 @@
23
20
  "include": ["src/**/*", "react-native.ts", "rozenite.config.ts"],
24
21
  "exclude": ["node_modules", "dist", "build"],
25
22
  "references": [
23
+ {
24
+ "path": "../agent-bridge"
25
+ },
26
26
  {
27
27
  "path": "../plugin-bridge"
28
28
  },