sliccy 1.18.2 → 1.19.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.
Files changed (96) hide show
  1. package/dist/ui/assets/{___vite-browser-external_commonjs-proxy-BwJgphaY.js → ___vite-browser-external_commonjs-proxy-DU9g-pAk.js} +1 -1
  2. package/dist/ui/assets/{bsh-watchdog-qD-Teoo4.js → bsh-watchdog-D8cxZoGx.js} +1 -1
  3. package/dist/ui/assets/{index-DZrFxY8C.js → index-BMrWjOA6.js} +1 -1
  4. package/dist/ui/assets/{index-fbqdhDlF.js → index-BjvBFNU_.js} +1 -1
  5. package/dist/ui/assets/{index-CL0Bwyen.js → index-BwyPKnK5.js} +289 -289
  6. package/dist/ui/assets/{index-BvZFUJlY.js → index-CJGeHOsM.js} +1 -1
  7. package/dist/ui/assets/{index-KFWCKVJQ.js → index-CQZA7VKt.js} +1 -1
  8. package/dist/ui/assets/{index-B8IwKAYd.js → index-CSm6gBcH.js} +1 -1
  9. package/dist/ui/assets/{index-BAVxG_Su.js → index-DeHghjQD.js} +1 -1
  10. package/dist/ui/assets/{index-JXeYDsaX.js → index-DiiWjd3G.js} +1 -1
  11. package/dist/ui/assets/{index-BsoP4arC.js → index-HQcZZzOy.js} +1 -1
  12. package/dist/ui/assets/{offscreen-client-CFibtznc.js → offscreen-client-ClelxYjR.js} +1 -1
  13. package/dist/ui/assets/{sql-wasm-DD4iv2bM.js → sql-wasm-BQajMxK_.js} +1 -1
  14. package/dist/ui/electron-overlay-entry.js +162 -32
  15. package/dist/ui/index.html +2 -2
  16. package/dist/ui/logos/Sliccy Logo.svg +32 -0
  17. package/dist/ui/logos/logo-editor.html +879 -0
  18. package/dist/ui/logos/sliccy-color-0scoops-128x128.png +0 -0
  19. package/dist/ui/logos/sliccy-color-0scoops-16x16.png +0 -0
  20. package/dist/ui/logos/sliccy-color-0scoops-32x32.png +0 -0
  21. package/dist/ui/logos/sliccy-color-0scoops-48x48.png +0 -0
  22. package/dist/ui/logos/sliccy-color-0scoops.svg +27 -0
  23. package/dist/ui/logos/sliccy-color-10scoops-128x128.png +0 -0
  24. package/dist/ui/logos/sliccy-color-10scoops-16x16.png +0 -0
  25. package/dist/ui/logos/sliccy-color-10scoops-32x32.png +0 -0
  26. package/dist/ui/logos/sliccy-color-10scoops-48x48.png +0 -0
  27. package/dist/ui/logos/sliccy-color-10scoops.svg +27 -0
  28. package/dist/ui/logos/sliccy-color-1scoops-128x128.png +0 -0
  29. package/dist/ui/logos/sliccy-color-1scoops-16x16.png +0 -0
  30. package/dist/ui/logos/sliccy-color-1scoops-32x32.png +0 -0
  31. package/dist/ui/logos/sliccy-color-1scoops-48x48.png +0 -0
  32. package/dist/ui/logos/sliccy-color-1scoops.svg +27 -0
  33. package/dist/ui/logos/sliccy-color-2scoops-128x128.png +0 -0
  34. package/dist/ui/logos/sliccy-color-2scoops-16x16.png +0 -0
  35. package/dist/ui/logos/sliccy-color-2scoops-32x32.png +0 -0
  36. package/dist/ui/logos/sliccy-color-2scoops-48x48.png +0 -0
  37. package/dist/ui/logos/sliccy-color-2scoops.svg +27 -0
  38. package/dist/ui/logos/sliccy-color-3scoops-128x128.png +0 -0
  39. package/dist/ui/logos/sliccy-color-3scoops-16x16.png +0 -0
  40. package/dist/ui/logos/sliccy-color-3scoops-32x32.png +0 -0
  41. package/dist/ui/logos/sliccy-color-3scoops-48x48.png +0 -0
  42. package/dist/ui/logos/sliccy-color-3scoops.svg +27 -0
  43. package/dist/ui/logos/sliccy-color-4scoops-128x128.png +0 -0
  44. package/dist/ui/logos/sliccy-color-4scoops-16x16.png +0 -0
  45. package/dist/ui/logos/sliccy-color-4scoops-32x32.png +0 -0
  46. package/dist/ui/logos/sliccy-color-4scoops-48x48.png +0 -0
  47. package/dist/ui/logos/sliccy-color-4scoops.svg +27 -0
  48. package/dist/ui/logos/sliccy-color-5scoops-128x128.png +0 -0
  49. package/dist/ui/logos/sliccy-color-5scoops-16x16.png +0 -0
  50. package/dist/ui/logos/sliccy-color-5scoops-32x32.png +0 -0
  51. package/dist/ui/logos/sliccy-color-5scoops-48x48.png +0 -0
  52. package/dist/ui/logos/sliccy-color-5scoops.svg +27 -0
  53. package/dist/ui/logos/sliccy-color-6scoops-128x128.png +0 -0
  54. package/dist/ui/logos/sliccy-color-6scoops-16x16.png +0 -0
  55. package/dist/ui/logos/sliccy-color-6scoops-32x32.png +0 -0
  56. package/dist/ui/logos/sliccy-color-6scoops-48x48.png +0 -0
  57. package/dist/ui/logos/sliccy-color-6scoops.svg +27 -0
  58. package/dist/ui/logos/sliccy-color-7scoops-128x128.png +0 -0
  59. package/dist/ui/logos/sliccy-color-7scoops-16x16.png +0 -0
  60. package/dist/ui/logos/sliccy-color-7scoops-32x32.png +0 -0
  61. package/dist/ui/logos/sliccy-color-7scoops-48x48.png +0 -0
  62. package/dist/ui/logos/sliccy-color-7scoops.svg +27 -0
  63. package/dist/ui/logos/sliccy-color-8scoops-128x128.png +0 -0
  64. package/dist/ui/logos/sliccy-color-8scoops-16x16.png +0 -0
  65. package/dist/ui/logos/sliccy-color-8scoops-32x32.png +0 -0
  66. package/dist/ui/logos/sliccy-color-8scoops-48x48.png +0 -0
  67. package/dist/ui/logos/sliccy-color-8scoops.svg +27 -0
  68. package/dist/ui/logos/sliccy-color-9scoops-128x128.png +0 -0
  69. package/dist/ui/logos/sliccy-color-9scoops-16x16.png +0 -0
  70. package/dist/ui/logos/sliccy-color-9scoops-32x32.png +0 -0
  71. package/dist/ui/logos/sliccy-color-9scoops-48x48.png +0 -0
  72. package/dist/ui/logos/sliccy-color-9scoops.svg +27 -0
  73. package/dist/ui/logos/sliccy-mono-dark-0scoops.svg +27 -0
  74. package/dist/ui/logos/sliccy-mono-dark-10scoops.svg +27 -0
  75. package/dist/ui/logos/sliccy-mono-dark-1scoops.svg +27 -0
  76. package/dist/ui/logos/sliccy-mono-dark-2scoops.svg +27 -0
  77. package/dist/ui/logos/sliccy-mono-dark-3scoops.svg +27 -0
  78. package/dist/ui/logos/sliccy-mono-dark-4scoops.svg +27 -0
  79. package/dist/ui/logos/sliccy-mono-dark-5scoops.svg +27 -0
  80. package/dist/ui/logos/sliccy-mono-dark-6scoops.svg +27 -0
  81. package/dist/ui/logos/sliccy-mono-dark-7scoops.svg +27 -0
  82. package/dist/ui/logos/sliccy-mono-dark-8scoops.svg +27 -0
  83. package/dist/ui/logos/sliccy-mono-dark-9scoops.svg +27 -0
  84. package/dist/ui/logos/sliccy-mono-light-0scoops.svg +27 -0
  85. package/dist/ui/logos/sliccy-mono-light-10scoops.svg +27 -0
  86. package/dist/ui/logos/sliccy-mono-light-1scoops.svg +27 -0
  87. package/dist/ui/logos/sliccy-mono-light-2scoops.svg +27 -0
  88. package/dist/ui/logos/sliccy-mono-light-3scoops.svg +27 -0
  89. package/dist/ui/logos/sliccy-mono-light-4scoops.svg +27 -0
  90. package/dist/ui/logos/sliccy-mono-light-5scoops.svg +27 -0
  91. package/dist/ui/logos/sliccy-mono-light-6scoops.svg +27 -0
  92. package/dist/ui/logos/sliccy-mono-light-7scoops.svg +27 -0
  93. package/dist/ui/logos/sliccy-mono-light-8scoops.svg +27 -0
  94. package/dist/ui/logos/sliccy-mono-light-9scoops.svg +27 -0
  95. package/dist/ui/packages/webapp/index.html +2 -2
  96. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{A as nn}from"./index-CL0Bwyen.js";import{r as nt}from"./___vite-browser-external_commonjs-proxy-BwJgphaY.js";function on(j,De){for(var z=0;z<De.length;z++){const Q=De[z];if(typeof Q!="string"&&!Array.isArray(Q)){for(const F in Q)if(F!=="default"&&!(F in j)){const ie=Object.getOwnPropertyDescriptor(Q,F);ie&&Object.defineProperty(j,F,ie.get?ie:{enumerable:!0,get:()=>Q[F]})}}}return Object.freeze(Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}))}var hr={exports:{}},it;function an(){return it||(it=1,(function(j,De){var z=void 0,Q=function(F){return z||(z=new Promise(function(ie,at){var I=typeof F<"u"?F:{},mr=I.onAbort;I.onAbort=function(e){at(new Error(e)),mr&&mr(e)},I.postRun=I.postRun||[],I.postRun.push(function(){ie(I)}),j=void 0;var s;s||=typeof I<"u"?I:{};var ut=!!globalThis.window,Ie=!!globalThis.WorkerGlobalScope,de=globalThis.process?.versions?.node&&globalThis.process?.type!="renderer";s.onRuntimeInitialized=function(){function e(o,l){switch(typeof l){case"boolean":rn(o,l?1:0);break;case"number":Ht(o,l);break;case"string":Kt(o,l,-1,-1);break;case"object":if(l===null)Kr(o);else if(l.length!=null){var h=Le(l.length);q.set(l,h),en(o,h,l.length,-1),ce(h)}else Ue(o,"Wrong API use : tried to return a value of an unknown type ("+l+").",-1);break;default:Kr(o)}}function r(o,l){for(var h=[],m=0;m<o;m+=1){var w=W(l+4*m,"i32"),y=Yt(w);if(y===1||y===2)w=Jt(w);else if(y===3)w=Gt(w);else if(y===4){y=w,w=Ct(y),y=Zt(y);for(var T=new Uint8Array(w),L=0;L<w;L+=1)T[L]=q[y+L];w=T}else w=null;h.push(w)}return h}function t(o,l){this.Qa=o,this.db=l,this.Oa=1,this.lb=[]}function n(o,l){if(this.db=l,this.eb=Oe(o),this.eb===null)throw Error("Unable to allocate memory for the SQL string");this.kb=this.eb,this.Za=this.qb=null}function i(o){if(this.filename="dbfile_"+(4294967295*Math.random()>>>0),o!=null){var l=this.filename,h="/",m=l;if(h&&(h=typeof h=="string"?h:Je(h),m=l?Ce(h+"/"+l):h),l=qr(!0,!0),m=kt(m,l),o){if(typeof o=="string"){h=Array(o.length);for(var w=0,y=o.length;w<y;++w)h[w]=o.charCodeAt(w);o=h}Ne(m,l|146),h=ne(m,577),Qr(h,o,0,o.length,0),nr(h),Ne(m,l)}}this.handleError(c(this.filename,a)),this.db=W(a,"i32"),rt(this.db),this.fb={},this.Sa={}}var a=H(4),u=s.cwrap,c=u("sqlite3_open","number",["string","number"]),b=u("sqlite3_close_v2","number",["number"]),p=u("sqlite3_exec","number",["number","string","number","number","number"]),g=u("sqlite3_changes","number",["number"]),M=u("sqlite3_prepare_v2","number",["number","string","number","number","number"]),Cr=u("sqlite3_sql","string",["number"]),Ot=u("sqlite3_normalized_sql","string",["number"]),Gr=u("sqlite3_prepare_v2","number",["number","number","number","number","number"]),Lt=u("sqlite3_bind_text","number",["number","number","number","number","number"]),Zr=u("sqlite3_bind_blob","number",["number","number","number","number","number"]),xt=u("sqlite3_bind_double","number",["number","number","number"]),Tt=u("sqlite3_bind_int","number",["number","number","number"]),Pt=u("sqlite3_bind_parameter_index","number",["number","string"]),Ut=u("sqlite3_step","number",["number"]),Dt=u("sqlite3_errmsg","string",["number"]),It=u("sqlite3_column_count","number",["number"]),Wt=u("sqlite3_data_count","number",["number"]),jt=u("sqlite3_column_double","number",["number","number"]),Jr=u("sqlite3_column_text","string",["number","number"]),zt=u("sqlite3_column_blob","number",["number","number"]),Qt=u("sqlite3_column_bytes","number",["number","number"]),Ft=u("sqlite3_column_type","number",["number","number"]),$t=u("sqlite3_column_name","string",["number","number"]),Bt=u("sqlite3_reset","number",["number"]),Vt=u("sqlite3_clear_bindings","number",["number"]),Xt=u("sqlite3_finalize","number",["number"]),Hr=u("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Yt=u("sqlite3_value_type","number",["number"]),Ct=u("sqlite3_value_bytes","number",["number"]),Gt=u("sqlite3_value_text","string",["number"]),Zt=u("sqlite3_value_blob","number",["number"]),Jt=u("sqlite3_value_double","number",["number"]),Ht=u("sqlite3_result_double","",["number","number"]),Kr=u("sqlite3_result_null","",["number"]),Kt=u("sqlite3_result_text","",["number","string","number","number"]),en=u("sqlite3_result_blob","",["number","number","number","number"]),rn=u("sqlite3_result_int","",["number","number"]),Ue=u("sqlite3_result_error","",["number","string","number"]),et=u("sqlite3_aggregate_context","number",["number","number"]),rt=u("RegisterExtensionFunctions","number",["number"]),tt=u("sqlite3_update_hook","number",["number","number","number"]);t.prototype.bind=function(o){if(!this.Qa)throw"Statement closed";return this.reset(),Array.isArray(o)?this.Cb(o):o!=null&&typeof o=="object"?this.Db(o):!0},t.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Oa=1;var o=Ut(this.Qa);switch(o){case 100:return!0;case 101:return!1;default:throw this.db.handleError(o)}},t.prototype.wb=function(o){return o==null&&(o=this.Oa,this.Oa+=1),jt(this.Qa,o)},t.prototype.Gb=function(o){if(o==null&&(o=this.Oa,this.Oa+=1),o=Jr(this.Qa,o),typeof BigInt!="function")throw Error("BigInt is not supported");return BigInt(o)},t.prototype.Hb=function(o){return o==null&&(o=this.Oa,this.Oa+=1),Jr(this.Qa,o)},t.prototype.getBlob=function(o){o==null&&(o=this.Oa,this.Oa+=1);var l=Qt(this.Qa,o);o=zt(this.Qa,o);for(var h=new Uint8Array(l),m=0;m<l;m+=1)h[m]=q[o+m];return h},t.prototype.get=function(o,l){l=l||{},o!=null&&this.bind(o)&&this.step(),o=[];for(var h=Wt(this.Qa),m=0;m<h;m+=1)switch(Ft(this.Qa,m)){case 1:var w=l.useBigInt?this.Gb(m):this.wb(m);o.push(w);break;case 2:o.push(this.wb(m));break;case 3:o.push(this.Hb(m));break;case 4:o.push(this.getBlob(m));break;default:o.push(null)}return o},t.prototype.getColumnNames=function(){for(var o=[],l=It(this.Qa),h=0;h<l;h+=1)o.push($t(this.Qa,h));return o},t.prototype.getAsObject=function(o,l){o=this.get(o,l),l=this.getColumnNames();for(var h={},m=0;m<l.length;m+=1)h[l[m]]=o[m];return h},t.prototype.getSQL=function(){return Cr(this.Qa)},t.prototype.getNormalizedSQL=function(){return Ot(this.Qa)},t.prototype.run=function(o){return o!=null&&this.bind(o),this.step(),this.reset()},t.prototype.tb=function(o,l){l==null&&(l=this.Oa,this.Oa+=1),o=Oe(o),this.lb.push(o),this.db.handleError(Lt(this.Qa,l,o,-1,0))},t.prototype.Bb=function(o,l){l==null&&(l=this.Oa,this.Oa+=1);var h=Le(o.length);q.set(o,h),this.lb.push(h),this.db.handleError(Zr(this.Qa,l,h,o.length,0))},t.prototype.sb=function(o,l){l==null&&(l=this.Oa,this.Oa+=1),this.db.handleError((o===(o|0)?Tt:xt)(this.Qa,l,o))},t.prototype.Eb=function(o){o==null&&(o=this.Oa,this.Oa+=1),Zr(this.Qa,o,0,0,0)},t.prototype.ub=function(o,l){switch(l==null&&(l=this.Oa,this.Oa+=1),typeof o){case"string":this.tb(o,l);return;case"number":this.sb(o,l);return;case"bigint":this.tb(o.toString(),l);return;case"boolean":this.sb(o+0,l);return;case"object":if(o===null){this.Eb(l);return}if(o.length!=null){this.Bb(o,l);return}}throw"Wrong API use : tried to bind a value of an unknown type ("+o+")."},t.prototype.Db=function(o){var l=this;return Object.keys(o).forEach(function(h){var m=Pt(l.Qa,h);m!==0&&l.ub(o[h],m)}),!0},t.prototype.Cb=function(o){for(var l=0;l<o.length;l+=1)this.ub(o[l],l+1);return!0},t.prototype.reset=function(){return this.freemem(),Vt(this.Qa)===0&&Bt(this.Qa)===0},t.prototype.freemem=function(){for(var o;(o=this.lb.pop())!==void 0;)ce(o)},t.prototype.free=function(){this.freemem();var o=Xt(this.Qa)===0;return delete this.db.fb[this.Qa],this.Qa=0,o},n.prototype.next=function(){if(this.eb===null)return{done:!0};if(this.Za!==null&&(this.Za.free(),this.Za=null),!this.db.db)throw this.nb(),Error("Database closed");var o=Te(),l=H(4);le(a),le(l);try{this.db.handleError(Gr(this.db.db,this.kb,-1,a,l)),this.kb=W(l,"i32");var h=W(a,"i32");return h===0?(this.nb(),{done:!0}):(this.Za=new t(h,this.db),this.db.fb[h]=this.Za,{value:this.Za,done:!1})}catch(m){throw this.qb=E(this.kb),this.nb(),m}finally{xe(o)}},n.prototype.nb=function(){ce(this.eb),this.eb=null},n.prototype.getRemainingSQL=function(){return this.qb!==null?this.qb:E(this.kb)},typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"&&(n.prototype[Symbol.iterator]=function(){return this}),i.prototype.run=function(o,l){if(!this.db)throw"Database closed";if(l){o=this.prepare(o,l);try{o.step()}finally{o.free()}}else this.handleError(p(this.db,o,0,0,a));return this},i.prototype.exec=function(o,l,h){if(!this.db)throw"Database closed";var m=null,w=null,y=null;try{y=w=Oe(o);var T=H(4);for(o=[];W(y,"i8")!==0;){le(a),le(T),this.handleError(Gr(this.db,y,-1,a,T));var L=W(a,"i32");if(y=W(T,"i32"),L!==0){var R=null;for(m=new t(L,this),l!=null&&m.bind(l);m.step();)R===null&&(R={columns:m.getColumnNames(),values:[]},o.push(R)),R.values.push(m.get(null,h));m.free()}}return o}catch(P){throw m&&m.free(),P}finally{w&&ce(w)}},i.prototype.each=function(o,l,h,m,w){typeof l=="function"&&(m=h,h=l,l=void 0),o=this.prepare(o,l);try{for(;o.step();)h(o.getAsObject(null,w))}finally{o.free()}if(typeof m=="function")return m()},i.prototype.prepare=function(o,l){if(le(a),this.handleError(M(this.db,o,-1,a,0)),o=W(a,"i32"),o===0)throw"Nothing to prepare";var h=new t(o,this);return l!=null&&h.bind(l),this.fb[o]=h},i.prototype.iterateStatements=function(o){return new n(o,this)},i.prototype.export=function(){Object.values(this.fb).forEach(function(l){l.free()}),Object.values(this.Sa).forEach(V),this.Sa={},this.handleError(b(this.db));var o=Et(this.filename);return this.handleError(c(this.filename,a)),this.db=W(a,"i32"),rt(this.db),o},i.prototype.close=function(){this.db!==null&&(Object.values(this.fb).forEach(function(o){o.free()}),Object.values(this.Sa).forEach(V),this.Sa={},this.Ya&&(V(this.Ya),this.Ya=void 0),this.handleError(b(this.db)),Dr("/"+this.filename),this.db=null)},i.prototype.handleError=function(o){if(o===0)return null;throw o=Dt(this.db),Error(o)},i.prototype.getRowsModified=function(){return g(this.db)},i.prototype.create_function=function(o,l){Object.prototype.hasOwnProperty.call(this.Sa,o)&&(V(this.Sa[o]),delete this.Sa[o]);var h=me(function(m,w,y){w=r(w,y);try{var T=l.apply(null,w)}catch(L){Ue(m,L,-1);return}e(m,T)},"viii");return this.Sa[o]=h,this.handleError(Hr(this.db,o,l.length,1,0,h,0,0,0)),this},i.prototype.create_aggregate=function(o,l){var h=l.init||function(){return null},m=l.finalize||function(R){return R},w=l.step;if(!w)throw"An aggregate function must have a step function in "+o;var y={};Object.hasOwnProperty.call(this.Sa,o)&&(V(this.Sa[o]),delete this.Sa[o]),l=o+"__finalize",Object.hasOwnProperty.call(this.Sa,l)&&(V(this.Sa[l]),delete this.Sa[l]);var T=me(function(R,P,fr){var K=et(R,1);Object.hasOwnProperty.call(y,K)||(y[K]=h()),P=r(P,fr),P=[y[K]].concat(P);try{y[K]=w.apply(null,P)}catch(tn){delete y[K],Ue(R,tn,-1)}},"viii"),L=me(function(R){var P=et(R,1);try{var fr=m(y[P])}catch(K){delete y[P],Ue(R,K,-1);return}e(R,fr),delete y[P]},"vi");return this.Sa[o]=T,this.Sa[l]=L,this.handleError(Hr(this.db,o,w.length-1,1,0,0,T,L,0)),this},i.prototype.updateHook=function(o){return this.Ya&&(tt(this.db,0,0),V(this.Ya),this.Ya=void 0),o?(this.Ya=me(function(l,h,m,w,y){switch(h){case 18:l="insert";break;case 23:l="update";break;case 9:l="delete";break;default:throw"unknown operationCode in updateHook callback: "+h}if(m=E(m),w=E(w),y>Number.MAX_SAFE_INTEGER)throw"rowId too big to fit inside a Number";o(l,m,w,Number(y))},"viiiij"),tt(this.db,this.Ya,0),this):this},s.Database=i};var We="./this.program",pe=(e,r)=>{throw r},je=globalThis.document?.currentScript?.src;typeof __filename<"u"?je=__filename:Ie&&(je=self.location.href);var we="",ze,be;if(de){var Qe=nt;we=__dirname+"/",be=e=>(e=ve(e)?new URL(e):e,Qe.readFileSync(e)),ze=async e=>(e=ve(e)?new URL(e):e,Qe.readFileSync(e,void 0)),1<process.argv.length&&(We=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),j.exports=s,pe=(e,r)=>{throw process.exitCode=e,r}}else if(ut||Ie){try{we=new URL(".",je).href}catch{}Ie&&(be=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ze=async e=>{if(ve(e))return new Promise((t,n)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{i.status==200||i.status==0&&i.response?t(i.response):n(i.status)},i.onerror=n,i.send(null)});var r=await fetch(e,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw Error(r.status+" : "+r.url)}}var Fe=console.log.bind(console),Y=console.error.bind(console),oe,ye=!1,$e,ve=e=>e.startsWith("file://"),q,N,ae,k,v,Be,Ve,x;function cr(){var e=Pe.buffer;q=new Int8Array(e),ae=new Int16Array(e),N=new Uint8Array(e),k=new Int32Array(e),v=new Uint32Array(e),Be=new Float32Array(e),Ve=new Float64Array(e),x=new BigInt64Array(e),new BigUint64Array(e)}function ue(e){throw s.onAbort?.(e),e="Aborted("+e+")",Y(e),ye=!0,new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info.")}var Xe;async function st(e){if(!oe)try{var r=await ze(e);return new Uint8Array(r)}catch{}if(e==Xe&&oe)e=new Uint8Array(oe);else if(be)e=be(e);else throw"both async and sync fetching of the wasm failed";return e}async function lt(e,r){try{var t=await st(e);return await WebAssembly.instantiate(t,r)}catch(n){Y(`failed to asynchronously prepare wasm: ${n}`),ue(n)}}async function ft(e){var r=Xe;if(!oe&&!ve(r)&&!de)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(n){Y(`wasm streaming compile failed: ${n}`),Y("falling back to ArrayBuffer instantiation")}return lt(r,e)}class Ye{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var dr=e=>{for(;0<e.length;)e.shift()(s)},pr=[],wr=[],ht=()=>{var e=s.preRun.shift();wr.push(e)},C=0,se=null;function W(e,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":return q[e];case"i8":return q[e];case"i16":return ae[e>>1];case"i32":return k[e>>2];case"i64":return x[e>>3];case"float":return Be[e>>2];case"double":return Ve[e>>3];case"*":return v[e>>2];default:ue(`invalid type for getValue: ${r}`)}}var _e=!0;function le(e){var r="i32";switch(r.endsWith("*")&&(r="*"),r){case"i1":q[e]=0;break;case"i8":q[e]=0;break;case"i16":ae[e>>1]=0;break;case"i32":k[e>>2]=0;break;case"i64":x[e>>3]=BigInt(0);break;case"float":Be[e>>2]=0;break;case"double":Ve[e>>3]=0;break;case"*":v[e>>2]=0;break;default:ue(`invalid type for setValue: ${r}`)}}var br=new TextDecoder,yr=(e,r,t,n)=>{if(t=r+t,n)return t;for(;e[r]&&!(r>=t);)++r;return r},E=(e,r,t)=>e?br.decode(N.subarray(e,yr(N,e,r,t))):"",vr=(e,r)=>{for(var t=0,n=e.length-1;0<=n;n--){var i=e[n];i==="."?e.splice(n,1):i===".."?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},Ce=e=>{var r=e.charAt(0)==="/",t=e.slice(-1)==="/";return(e=vr(e.split("/").filter(n=>!!n),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},_r=e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=r[0],r=r[1],!e&&!r?".":(r&&=r.slice(0,-1),e+r)},ge=e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],mt=()=>{if(de){var e=nt;return r=>e.randomFillSync(r)}return r=>crypto.getRandomValues(r)},gr=e=>{(gr=mt())(e)},ct=(...e)=>{for(var r="",t=!1,n=e.length-1;-1<=n&&!t;n--){if(t=0<=n?e[n]:"/",typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t=t.charAt(0)==="/"}return r=vr(r.split("/").filter(i=>!!i),!t).join("/"),(t?"/":"")+r||"."},ke=e=>{var r=yr(e,0);return br.decode(e.buffer?e.subarray(0,r):new Uint8Array(e.slice(0,r)))},Ge=[],ee=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);127>=n?r++:2047>=n?r+=2:55296<=n&&57343>=n?(r+=4,++t):r+=3}return r},U=(e,r,t,n)=>{if(!(0<n))return 0;var i=t;n=t+n-1;for(var a=0;a<e.length;++a){var u=e.codePointAt(a);if(127>=u){if(t>=n)break;r[t++]=u}else if(2047>=u){if(t+1>=n)break;r[t++]=192|u>>6,r[t++]=128|u&63}else if(65535>=u){if(t+2>=n)break;r[t++]=224|u>>12,r[t++]=128|u>>6&63,r[t++]=128|u&63}else{if(t+3>=n)break;r[t++]=240|u>>18,r[t++]=128|u>>12&63,r[t++]=128|u>>6&63,r[t++]=128|u&63,a++}}return r[t]=0,t-i},kr=[];function Er(e,r){kr[e]={input:[],output:[],cb:r},rr(e,dt)}var dt={open(e){var r=kr[e.node.rdev];if(!r)throw new f(43);e.tty=r,e.seekable=!1},close(e){e.tty.cb.fsync(e.tty)},fsync(e){e.tty.cb.fsync(e.tty)},read(e,r,t,n){if(!e.tty||!e.tty.cb.xb)throw new f(60);for(var i=0,a=0;a<n;a++){try{var u=e.tty.cb.xb(e.tty)}catch{throw new f(29)}if(u===void 0&&i===0)throw new f(6);if(u==null)break;i++,r[t+a]=u}return i&&(e.node.atime=Date.now()),i},write(e,r,t,n){if(!e.tty||!e.tty.cb.rb)throw new f(60);try{for(var i=0;i<n;i++)e.tty.cb.rb(e.tty,r[t+i])}catch{throw new f(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),i}},pt={xb(){e:{if(!Ge.length){var e=null;if(de){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=Qe.readSync(n,r,0,256)}catch(i){if(i.toString().includes("EOF"))t=0;else throw i}0<t&&(e=r.slice(0,t).toString("utf-8"))}else globalThis.window?.prompt&&(e=window.prompt("Input: "),e!==null&&(e+=`
1
+ import{A as nn}from"./index-BwyPKnK5.js";import{r as nt}from"./___vite-browser-external_commonjs-proxy-DU9g-pAk.js";function on(j,De){for(var z=0;z<De.length;z++){const Q=De[z];if(typeof Q!="string"&&!Array.isArray(Q)){for(const F in Q)if(F!=="default"&&!(F in j)){const ie=Object.getOwnPropertyDescriptor(Q,F);ie&&Object.defineProperty(j,F,ie.get?ie:{enumerable:!0,get:()=>Q[F]})}}}return Object.freeze(Object.defineProperty(j,Symbol.toStringTag,{value:"Module"}))}var hr={exports:{}},it;function an(){return it||(it=1,(function(j,De){var z=void 0,Q=function(F){return z||(z=new Promise(function(ie,at){var I=typeof F<"u"?F:{},mr=I.onAbort;I.onAbort=function(e){at(new Error(e)),mr&&mr(e)},I.postRun=I.postRun||[],I.postRun.push(function(){ie(I)}),j=void 0;var s;s||=typeof I<"u"?I:{};var ut=!!globalThis.window,Ie=!!globalThis.WorkerGlobalScope,de=globalThis.process?.versions?.node&&globalThis.process?.type!="renderer";s.onRuntimeInitialized=function(){function e(o,l){switch(typeof l){case"boolean":rn(o,l?1:0);break;case"number":Ht(o,l);break;case"string":Kt(o,l,-1,-1);break;case"object":if(l===null)Kr(o);else if(l.length!=null){var h=Le(l.length);q.set(l,h),en(o,h,l.length,-1),ce(h)}else Ue(o,"Wrong API use : tried to return a value of an unknown type ("+l+").",-1);break;default:Kr(o)}}function r(o,l){for(var h=[],m=0;m<o;m+=1){var w=W(l+4*m,"i32"),y=Yt(w);if(y===1||y===2)w=Jt(w);else if(y===3)w=Gt(w);else if(y===4){y=w,w=Ct(y),y=Zt(y);for(var T=new Uint8Array(w),L=0;L<w;L+=1)T[L]=q[y+L];w=T}else w=null;h.push(w)}return h}function t(o,l){this.Qa=o,this.db=l,this.Oa=1,this.lb=[]}function n(o,l){if(this.db=l,this.eb=Oe(o),this.eb===null)throw Error("Unable to allocate memory for the SQL string");this.kb=this.eb,this.Za=this.qb=null}function i(o){if(this.filename="dbfile_"+(4294967295*Math.random()>>>0),o!=null){var l=this.filename,h="/",m=l;if(h&&(h=typeof h=="string"?h:Je(h),m=l?Ce(h+"/"+l):h),l=qr(!0,!0),m=kt(m,l),o){if(typeof o=="string"){h=Array(o.length);for(var w=0,y=o.length;w<y;++w)h[w]=o.charCodeAt(w);o=h}Ne(m,l|146),h=ne(m,577),Qr(h,o,0,o.length,0),nr(h),Ne(m,l)}}this.handleError(c(this.filename,a)),this.db=W(a,"i32"),rt(this.db),this.fb={},this.Sa={}}var a=H(4),u=s.cwrap,c=u("sqlite3_open","number",["string","number"]),b=u("sqlite3_close_v2","number",["number"]),p=u("sqlite3_exec","number",["number","string","number","number","number"]),g=u("sqlite3_changes","number",["number"]),M=u("sqlite3_prepare_v2","number",["number","string","number","number","number"]),Cr=u("sqlite3_sql","string",["number"]),Ot=u("sqlite3_normalized_sql","string",["number"]),Gr=u("sqlite3_prepare_v2","number",["number","number","number","number","number"]),Lt=u("sqlite3_bind_text","number",["number","number","number","number","number"]),Zr=u("sqlite3_bind_blob","number",["number","number","number","number","number"]),xt=u("sqlite3_bind_double","number",["number","number","number"]),Tt=u("sqlite3_bind_int","number",["number","number","number"]),Pt=u("sqlite3_bind_parameter_index","number",["number","string"]),Ut=u("sqlite3_step","number",["number"]),Dt=u("sqlite3_errmsg","string",["number"]),It=u("sqlite3_column_count","number",["number"]),Wt=u("sqlite3_data_count","number",["number"]),jt=u("sqlite3_column_double","number",["number","number"]),Jr=u("sqlite3_column_text","string",["number","number"]),zt=u("sqlite3_column_blob","number",["number","number"]),Qt=u("sqlite3_column_bytes","number",["number","number"]),Ft=u("sqlite3_column_type","number",["number","number"]),$t=u("sqlite3_column_name","string",["number","number"]),Bt=u("sqlite3_reset","number",["number"]),Vt=u("sqlite3_clear_bindings","number",["number"]),Xt=u("sqlite3_finalize","number",["number"]),Hr=u("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Yt=u("sqlite3_value_type","number",["number"]),Ct=u("sqlite3_value_bytes","number",["number"]),Gt=u("sqlite3_value_text","string",["number"]),Zt=u("sqlite3_value_blob","number",["number"]),Jt=u("sqlite3_value_double","number",["number"]),Ht=u("sqlite3_result_double","",["number","number"]),Kr=u("sqlite3_result_null","",["number"]),Kt=u("sqlite3_result_text","",["number","string","number","number"]),en=u("sqlite3_result_blob","",["number","number","number","number"]),rn=u("sqlite3_result_int","",["number","number"]),Ue=u("sqlite3_result_error","",["number","string","number"]),et=u("sqlite3_aggregate_context","number",["number","number"]),rt=u("RegisterExtensionFunctions","number",["number"]),tt=u("sqlite3_update_hook","number",["number","number","number"]);t.prototype.bind=function(o){if(!this.Qa)throw"Statement closed";return this.reset(),Array.isArray(o)?this.Cb(o):o!=null&&typeof o=="object"?this.Db(o):!0},t.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Oa=1;var o=Ut(this.Qa);switch(o){case 100:return!0;case 101:return!1;default:throw this.db.handleError(o)}},t.prototype.wb=function(o){return o==null&&(o=this.Oa,this.Oa+=1),jt(this.Qa,o)},t.prototype.Gb=function(o){if(o==null&&(o=this.Oa,this.Oa+=1),o=Jr(this.Qa,o),typeof BigInt!="function")throw Error("BigInt is not supported");return BigInt(o)},t.prototype.Hb=function(o){return o==null&&(o=this.Oa,this.Oa+=1),Jr(this.Qa,o)},t.prototype.getBlob=function(o){o==null&&(o=this.Oa,this.Oa+=1);var l=Qt(this.Qa,o);o=zt(this.Qa,o);for(var h=new Uint8Array(l),m=0;m<l;m+=1)h[m]=q[o+m];return h},t.prototype.get=function(o,l){l=l||{},o!=null&&this.bind(o)&&this.step(),o=[];for(var h=Wt(this.Qa),m=0;m<h;m+=1)switch(Ft(this.Qa,m)){case 1:var w=l.useBigInt?this.Gb(m):this.wb(m);o.push(w);break;case 2:o.push(this.wb(m));break;case 3:o.push(this.Hb(m));break;case 4:o.push(this.getBlob(m));break;default:o.push(null)}return o},t.prototype.getColumnNames=function(){for(var o=[],l=It(this.Qa),h=0;h<l;h+=1)o.push($t(this.Qa,h));return o},t.prototype.getAsObject=function(o,l){o=this.get(o,l),l=this.getColumnNames();for(var h={},m=0;m<l.length;m+=1)h[l[m]]=o[m];return h},t.prototype.getSQL=function(){return Cr(this.Qa)},t.prototype.getNormalizedSQL=function(){return Ot(this.Qa)},t.prototype.run=function(o){return o!=null&&this.bind(o),this.step(),this.reset()},t.prototype.tb=function(o,l){l==null&&(l=this.Oa,this.Oa+=1),o=Oe(o),this.lb.push(o),this.db.handleError(Lt(this.Qa,l,o,-1,0))},t.prototype.Bb=function(o,l){l==null&&(l=this.Oa,this.Oa+=1);var h=Le(o.length);q.set(o,h),this.lb.push(h),this.db.handleError(Zr(this.Qa,l,h,o.length,0))},t.prototype.sb=function(o,l){l==null&&(l=this.Oa,this.Oa+=1),this.db.handleError((o===(o|0)?Tt:xt)(this.Qa,l,o))},t.prototype.Eb=function(o){o==null&&(o=this.Oa,this.Oa+=1),Zr(this.Qa,o,0,0,0)},t.prototype.ub=function(o,l){switch(l==null&&(l=this.Oa,this.Oa+=1),typeof o){case"string":this.tb(o,l);return;case"number":this.sb(o,l);return;case"bigint":this.tb(o.toString(),l);return;case"boolean":this.sb(o+0,l);return;case"object":if(o===null){this.Eb(l);return}if(o.length!=null){this.Bb(o,l);return}}throw"Wrong API use : tried to bind a value of an unknown type ("+o+")."},t.prototype.Db=function(o){var l=this;return Object.keys(o).forEach(function(h){var m=Pt(l.Qa,h);m!==0&&l.ub(o[h],m)}),!0},t.prototype.Cb=function(o){for(var l=0;l<o.length;l+=1)this.ub(o[l],l+1);return!0},t.prototype.reset=function(){return this.freemem(),Vt(this.Qa)===0&&Bt(this.Qa)===0},t.prototype.freemem=function(){for(var o;(o=this.lb.pop())!==void 0;)ce(o)},t.prototype.free=function(){this.freemem();var o=Xt(this.Qa)===0;return delete this.db.fb[this.Qa],this.Qa=0,o},n.prototype.next=function(){if(this.eb===null)return{done:!0};if(this.Za!==null&&(this.Za.free(),this.Za=null),!this.db.db)throw this.nb(),Error("Database closed");var o=Te(),l=H(4);le(a),le(l);try{this.db.handleError(Gr(this.db.db,this.kb,-1,a,l)),this.kb=W(l,"i32");var h=W(a,"i32");return h===0?(this.nb(),{done:!0}):(this.Za=new t(h,this.db),this.db.fb[h]=this.Za,{value:this.Za,done:!1})}catch(m){throw this.qb=E(this.kb),this.nb(),m}finally{xe(o)}},n.prototype.nb=function(){ce(this.eb),this.eb=null},n.prototype.getRemainingSQL=function(){return this.qb!==null?this.qb:E(this.kb)},typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"&&(n.prototype[Symbol.iterator]=function(){return this}),i.prototype.run=function(o,l){if(!this.db)throw"Database closed";if(l){o=this.prepare(o,l);try{o.step()}finally{o.free()}}else this.handleError(p(this.db,o,0,0,a));return this},i.prototype.exec=function(o,l,h){if(!this.db)throw"Database closed";var m=null,w=null,y=null;try{y=w=Oe(o);var T=H(4);for(o=[];W(y,"i8")!==0;){le(a),le(T),this.handleError(Gr(this.db,y,-1,a,T));var L=W(a,"i32");if(y=W(T,"i32"),L!==0){var R=null;for(m=new t(L,this),l!=null&&m.bind(l);m.step();)R===null&&(R={columns:m.getColumnNames(),values:[]},o.push(R)),R.values.push(m.get(null,h));m.free()}}return o}catch(P){throw m&&m.free(),P}finally{w&&ce(w)}},i.prototype.each=function(o,l,h,m,w){typeof l=="function"&&(m=h,h=l,l=void 0),o=this.prepare(o,l);try{for(;o.step();)h(o.getAsObject(null,w))}finally{o.free()}if(typeof m=="function")return m()},i.prototype.prepare=function(o,l){if(le(a),this.handleError(M(this.db,o,-1,a,0)),o=W(a,"i32"),o===0)throw"Nothing to prepare";var h=new t(o,this);return l!=null&&h.bind(l),this.fb[o]=h},i.prototype.iterateStatements=function(o){return new n(o,this)},i.prototype.export=function(){Object.values(this.fb).forEach(function(l){l.free()}),Object.values(this.Sa).forEach(V),this.Sa={},this.handleError(b(this.db));var o=Et(this.filename);return this.handleError(c(this.filename,a)),this.db=W(a,"i32"),rt(this.db),o},i.prototype.close=function(){this.db!==null&&(Object.values(this.fb).forEach(function(o){o.free()}),Object.values(this.Sa).forEach(V),this.Sa={},this.Ya&&(V(this.Ya),this.Ya=void 0),this.handleError(b(this.db)),Dr("/"+this.filename),this.db=null)},i.prototype.handleError=function(o){if(o===0)return null;throw o=Dt(this.db),Error(o)},i.prototype.getRowsModified=function(){return g(this.db)},i.prototype.create_function=function(o,l){Object.prototype.hasOwnProperty.call(this.Sa,o)&&(V(this.Sa[o]),delete this.Sa[o]);var h=me(function(m,w,y){w=r(w,y);try{var T=l.apply(null,w)}catch(L){Ue(m,L,-1);return}e(m,T)},"viii");return this.Sa[o]=h,this.handleError(Hr(this.db,o,l.length,1,0,h,0,0,0)),this},i.prototype.create_aggregate=function(o,l){var h=l.init||function(){return null},m=l.finalize||function(R){return R},w=l.step;if(!w)throw"An aggregate function must have a step function in "+o;var y={};Object.hasOwnProperty.call(this.Sa,o)&&(V(this.Sa[o]),delete this.Sa[o]),l=o+"__finalize",Object.hasOwnProperty.call(this.Sa,l)&&(V(this.Sa[l]),delete this.Sa[l]);var T=me(function(R,P,fr){var K=et(R,1);Object.hasOwnProperty.call(y,K)||(y[K]=h()),P=r(P,fr),P=[y[K]].concat(P);try{y[K]=w.apply(null,P)}catch(tn){delete y[K],Ue(R,tn,-1)}},"viii"),L=me(function(R){var P=et(R,1);try{var fr=m(y[P])}catch(K){delete y[P],Ue(R,K,-1);return}e(R,fr),delete y[P]},"vi");return this.Sa[o]=T,this.Sa[l]=L,this.handleError(Hr(this.db,o,w.length-1,1,0,0,T,L,0)),this},i.prototype.updateHook=function(o){return this.Ya&&(tt(this.db,0,0),V(this.Ya),this.Ya=void 0),o?(this.Ya=me(function(l,h,m,w,y){switch(h){case 18:l="insert";break;case 23:l="update";break;case 9:l="delete";break;default:throw"unknown operationCode in updateHook callback: "+h}if(m=E(m),w=E(w),y>Number.MAX_SAFE_INTEGER)throw"rowId too big to fit inside a Number";o(l,m,w,Number(y))},"viiiij"),tt(this.db,this.Ya,0),this):this},s.Database=i};var We="./this.program",pe=(e,r)=>{throw r},je=globalThis.document?.currentScript?.src;typeof __filename<"u"?je=__filename:Ie&&(je=self.location.href);var we="",ze,be;if(de){var Qe=nt;we=__dirname+"/",be=e=>(e=ve(e)?new URL(e):e,Qe.readFileSync(e)),ze=async e=>(e=ve(e)?new URL(e):e,Qe.readFileSync(e,void 0)),1<process.argv.length&&(We=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),j.exports=s,pe=(e,r)=>{throw process.exitCode=e,r}}else if(ut||Ie){try{we=new URL(".",je).href}catch{}Ie&&(be=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ze=async e=>{if(ve(e))return new Promise((t,n)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{i.status==200||i.status==0&&i.response?t(i.response):n(i.status)},i.onerror=n,i.send(null)});var r=await fetch(e,{credentials:"same-origin"});if(r.ok)return r.arrayBuffer();throw Error(r.status+" : "+r.url)}}var Fe=console.log.bind(console),Y=console.error.bind(console),oe,ye=!1,$e,ve=e=>e.startsWith("file://"),q,N,ae,k,v,Be,Ve,x;function cr(){var e=Pe.buffer;q=new Int8Array(e),ae=new Int16Array(e),N=new Uint8Array(e),k=new Int32Array(e),v=new Uint32Array(e),Be=new Float32Array(e),Ve=new Float64Array(e),x=new BigInt64Array(e),new BigUint64Array(e)}function ue(e){throw s.onAbort?.(e),e="Aborted("+e+")",Y(e),ye=!0,new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info.")}var Xe;async function st(e){if(!oe)try{var r=await ze(e);return new Uint8Array(r)}catch{}if(e==Xe&&oe)e=new Uint8Array(oe);else if(be)e=be(e);else throw"both async and sync fetching of the wasm failed";return e}async function lt(e,r){try{var t=await st(e);return await WebAssembly.instantiate(t,r)}catch(n){Y(`failed to asynchronously prepare wasm: ${n}`),ue(n)}}async function ft(e){var r=Xe;if(!oe&&!ve(r)&&!de)try{var t=fetch(r,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(t,e)}catch(n){Y(`wasm streaming compile failed: ${n}`),Y("falling back to ArrayBuffer instantiation")}return lt(r,e)}class Ye{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var dr=e=>{for(;0<e.length;)e.shift()(s)},pr=[],wr=[],ht=()=>{var e=s.preRun.shift();wr.push(e)},C=0,se=null;function W(e,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":return q[e];case"i8":return q[e];case"i16":return ae[e>>1];case"i32":return k[e>>2];case"i64":return x[e>>3];case"float":return Be[e>>2];case"double":return Ve[e>>3];case"*":return v[e>>2];default:ue(`invalid type for getValue: ${r}`)}}var _e=!0;function le(e){var r="i32";switch(r.endsWith("*")&&(r="*"),r){case"i1":q[e]=0;break;case"i8":q[e]=0;break;case"i16":ae[e>>1]=0;break;case"i32":k[e>>2]=0;break;case"i64":x[e>>3]=BigInt(0);break;case"float":Be[e>>2]=0;break;case"double":Ve[e>>3]=0;break;case"*":v[e>>2]=0;break;default:ue(`invalid type for setValue: ${r}`)}}var br=new TextDecoder,yr=(e,r,t,n)=>{if(t=r+t,n)return t;for(;e[r]&&!(r>=t);)++r;return r},E=(e,r,t)=>e?br.decode(N.subarray(e,yr(N,e,r,t))):"",vr=(e,r)=>{for(var t=0,n=e.length-1;0<=n;n--){var i=e[n];i==="."?e.splice(n,1):i===".."?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},Ce=e=>{var r=e.charAt(0)==="/",t=e.slice(-1)==="/";return(e=vr(e.split("/").filter(n=>!!n),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},_r=e=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=r[0],r=r[1],!e&&!r?".":(r&&=r.slice(0,-1),e+r)},ge=e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],mt=()=>{if(de){var e=nt;return r=>e.randomFillSync(r)}return r=>crypto.getRandomValues(r)},gr=e=>{(gr=mt())(e)},ct=(...e)=>{for(var r="",t=!1,n=e.length-1;-1<=n&&!t;n--){if(t=0<=n?e[n]:"/",typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";r=t+"/"+r,t=t.charAt(0)==="/"}return r=vr(r.split("/").filter(i=>!!i),!t).join("/"),(t?"/":"")+r||"."},ke=e=>{var r=yr(e,0);return br.decode(e.buffer?e.subarray(0,r):new Uint8Array(e.slice(0,r)))},Ge=[],ee=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);127>=n?r++:2047>=n?r+=2:55296<=n&&57343>=n?(r+=4,++t):r+=3}return r},U=(e,r,t,n)=>{if(!(0<n))return 0;var i=t;n=t+n-1;for(var a=0;a<e.length;++a){var u=e.codePointAt(a);if(127>=u){if(t>=n)break;r[t++]=u}else if(2047>=u){if(t+1>=n)break;r[t++]=192|u>>6,r[t++]=128|u&63}else if(65535>=u){if(t+2>=n)break;r[t++]=224|u>>12,r[t++]=128|u>>6&63,r[t++]=128|u&63}else{if(t+3>=n)break;r[t++]=240|u>>18,r[t++]=128|u>>12&63,r[t++]=128|u>>6&63,r[t++]=128|u&63,a++}}return r[t]=0,t-i},kr=[];function Er(e,r){kr[e]={input:[],output:[],cb:r},rr(e,dt)}var dt={open(e){var r=kr[e.node.rdev];if(!r)throw new f(43);e.tty=r,e.seekable=!1},close(e){e.tty.cb.fsync(e.tty)},fsync(e){e.tty.cb.fsync(e.tty)},read(e,r,t,n){if(!e.tty||!e.tty.cb.xb)throw new f(60);for(var i=0,a=0;a<n;a++){try{var u=e.tty.cb.xb(e.tty)}catch{throw new f(29)}if(u===void 0&&i===0)throw new f(6);if(u==null)break;i++,r[t+a]=u}return i&&(e.node.atime=Date.now()),i},write(e,r,t,n){if(!e.tty||!e.tty.cb.rb)throw new f(60);try{for(var i=0;i<n;i++)e.tty.cb.rb(e.tty,r[t+i])}catch{throw new f(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),i}},pt={xb(){e:{if(!Ge.length){var e=null;if(de){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=Qe.readSync(n,r,0,256)}catch(i){if(i.toString().includes("EOF"))t=0;else throw i}0<t&&(e=r.slice(0,t).toString("utf-8"))}else globalThis.window?.prompt&&(e=window.prompt("Input: "),e!==null&&(e+=`
2
2
  `));if(!e){e=null;break e}r=Array(ee(e)+1),e=U(e,r,0,r.length),r.length=e,Ge=r}e=Ge.shift()}return e},rb(e,r){r===null||r===10?(Fe(ke(e.output)),e.output=[]):r!=0&&e.output.push(r)},fsync(e){0<e.output?.length&&(Fe(ke(e.output)),e.output=[])},Tb(){return{Ob:25856,Qb:5,Nb:191,Pb:35387,Mb:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},Ub(){return 0},Vb(){return[24,80]}},wt={rb(e,r){r===null||r===10?(Y(ke(e.output)),e.output=[]):r!=0&&e.output.push(r)},fsync(e){0<e.output?.length&&(Y(ke(e.output)),e.output=[])}},d={Wa:null,Xa(){return d.createNode(null,"/",16895,0)},createNode(e,r,t,n){if((t&61440)===24576||(t&61440)===4096)throw new f(63);return d.Wa||(d.Wa={dir:{node:{Ta:d.La.Ta,Ua:d.La.Ua,lookup:d.La.lookup,hb:d.La.hb,rename:d.La.rename,unlink:d.La.unlink,rmdir:d.La.rmdir,readdir:d.La.readdir,symlink:d.La.symlink},stream:{Va:d.Ma.Va}},file:{node:{Ta:d.La.Ta,Ua:d.La.Ua},stream:{Va:d.Ma.Va,read:d.Ma.read,write:d.Ma.write,ib:d.Ma.ib,jb:d.Ma.jb}},link:{node:{Ta:d.La.Ta,Ua:d.La.Ua,readlink:d.La.readlink},stream:{}},vb:{node:{Ta:d.La.Ta,Ua:d.La.Ua},stream:gt}}),t=Rr(e,r,t,n),S(t.mode)?(t.La=d.Wa.dir.node,t.Ma=d.Wa.dir.stream,t.Na={}):(t.mode&61440)===32768?(t.La=d.Wa.file.node,t.Ma=d.Wa.file.stream,t.Ra=0,t.Na=null):(t.mode&61440)===40960?(t.La=d.Wa.link.node,t.Ma=d.Wa.link.stream):(t.mode&61440)===8192&&(t.La=d.Wa.vb.node,t.Ma=d.Wa.vb.stream),t.atime=t.mtime=t.ctime=Date.now(),e&&(e.Na[r]=t,e.atime=e.mtime=e.ctime=t.atime),t},Sb(e){return e.Na?e.Na.subarray?e.Na.subarray(0,e.Ra):new Uint8Array(e.Na):new Uint8Array(0)},La:{Ta(e){var r={};return r.dev=(e.mode&61440)===8192?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,S(e.mode)?r.size=4096:(e.mode&61440)===32768?r.size=e.Ra:(e.mode&61440)===40960?r.size=e.link.length:r.size=0,r.atime=new Date(e.atime),r.mtime=new Date(e.mtime),r.ctime=new Date(e.ctime),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},Ua(e,r){for(var t of["mode","atime","mtime","ctime"])r[t]!=null&&(e[t]=r[t]);r.size!==void 0&&(r=r.size,e.Ra!=r&&(r==0?(e.Na=null,e.Ra=0):(t=e.Na,e.Na=new Uint8Array(r),t&&e.Na.set(t.subarray(0,Math.min(r,e.Ra))),e.Ra=r)))},lookup(){throw d.mb||(d.mb=new f(44),d.mb.stack="<generic error, no stack>"),d.mb},hb(e,r,t,n){return d.createNode(e,r,t,n)},rename(e,r,t){try{var n=G(r,t)}catch{}if(n){if(S(e.mode))for(var i in n.Na)throw new f(55);Ke(n)}delete e.parent.Na[e.name],r.Na[t]=e,e.name=t,r.ctime=r.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,r){delete e.Na[r],e.ctime=e.mtime=Date.now()},rmdir(e,r){var t=G(e,r),n;for(n in t.Na)throw new f(55);delete e.Na[r],e.ctime=e.mtime=Date.now()},readdir(e){return[".","..",...Object.keys(e.Na)]},symlink(e,r,t){return e=d.createNode(e,r,41471,0),e.link=t,e},readlink(e){if((e.mode&61440)!==40960)throw new f(28);return e.link}},Ma:{read(e,r,t,n,i){var a=e.node.Na;if(i>=e.node.Ra)return 0;if(e=Math.min(e.node.Ra-i,n),8<e&&a.subarray)r.set(a.subarray(i,i+e),t);else for(n=0;n<e;n++)r[t+n]=a[i+n];return e},write(e,r,t,n,i,a){if(r.buffer===q.buffer&&(a=!1),!n)return 0;if(e=e.node,e.mtime=e.ctime=Date.now(),r.subarray&&(!e.Na||e.Na.subarray)){if(a)return e.Na=r.subarray(t,t+n),e.Ra=n;if(e.Ra===0&&i===0)return e.Na=r.slice(t,t+n),e.Ra=n;if(i+n<=e.Ra)return e.Na.set(r.subarray(t,t+n),i),n}a=i+n;var u=e.Na?e.Na.length:0;if(u>=a||(a=Math.max(a,u*(1048576>u?2:1.125)>>>0),u!=0&&(a=Math.max(a,256)),u=e.Na,e.Na=new Uint8Array(a),0<e.Ra&&e.Na.set(u.subarray(0,e.Ra),0)),e.Na.subarray&&r.subarray)e.Na.set(r.subarray(t,t+n),i);else for(a=0;a<n;a++)e.Na[i+a]=r[t+a];return e.Ra=Math.max(e.Ra,i+n),n},Va(e,r,t){if(t===1?r+=e.position:t===2&&(e.node.mode&61440)===32768&&(r+=e.node.Ra),0>r)throw new f(28);return r},ib(e,r,t,n,i){if((e.node.mode&61440)!==32768)throw new f(43);if(e=e.node.Na,i&2||!e||e.buffer!==q.buffer){i=!0,n=65536*Math.ceil(r/65536);var a=Xr(65536,n);if(a&&N.fill(0,a,a+n),n=a,!n)throw new f(48);e&&((0<t||t+r<e.length)&&(e.subarray?e=e.subarray(t,t+r):e=Array.prototype.slice.call(e,t,t+r)),q.set(e,n))}else i=!1,n=e.byteOffset;return{Kb:n,Ab:i}},jb(e,r,t,n){return d.Ma.write(e,r,0,n,t,!1),0}}},qr=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},Ze=null,Mr={},re=[],bt=1,$=null,Nr=!1,Ar=!0,Sr={},f=class{name="ErrnoError";constructor(e){this.Pa=e}},yt=class{gb={};node=null;get flags(){return this.gb.flags}set flags(e){this.gb.flags=e}get position(){return this.gb.position}set position(e){this.gb.position=e}},vt=class{La={};Ma={};ab=null;constructor(e,r,t,n){e||=this,this.parent=e,this.Xa=e.Xa,this.id=bt++,this.name=r,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&365)===365}set read(e){e?this.mode|=365:this.mode&=-366}get write(){return(this.mode&146)===146}set write(e){e?this.mode|=146:this.mode&=-147}};function O(e,r={}){if(!e)throw new f(44);r.ob??(r.ob=!0),e.charAt(0)==="/"||(e="//"+e);var t=0;e:for(;40>t;t++){e=e.split("/").filter(c=>!!c);for(var n=Ze,i="/",a=0;a<e.length;a++){var u=a===e.length-1;if(u&&r.parent)break;if(e[a]!==".")if(e[a]==="..")if(i=_r(i),n===n.parent){e=i+"/"+e.slice(a+1).join("/"),t--;continue e}else n=n.parent;else{i=Ce(i+"/"+e[a]);try{n=G(n,e[a])}catch(c){if(c?.Pa===44&&u&&r.Jb)return{path:i};throw c}if(!n.ab||u&&!r.ob||(n=n.ab.root),(n.mode&61440)===40960&&(!u||r.$a)){if(!n.La.readlink)throw new f(52);n=n.La.readlink(n),n.charAt(0)==="/"||(n=_r(i)+"/"+n),e=n+"/"+e.slice(a+1).join("/");continue e}}}return{path:i,node:n}}throw new f(32)}function Je(e){for(var r;;){if(e===e.parent)return e=e.Xa.zb,r?e[e.length-1]!=="/"?`${e}/${r}`:e+r:e;r=r?`${e.name}/${r}`:e.name,e=e.parent}}function He(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%$.length}function Ke(e){var r=He(e.parent.id,e.name);if($[r]===e)$[r]=e.bb;else for(r=$[r];r;){if(r.bb===e){r.bb=e.bb;break}r=r.bb}}function G(e,r){var t=S(e.mode)?(t=te(e,"x"))?t:e.La.lookup?0:2:54;if(t)throw new f(t);for(t=$[He(e.id,r)];t;t=t.bb){var n=t.name;if(t.parent.id===e.id&&n===r)return t}return e.La.lookup(e,r)}function Rr(e,r,t,n){return e=new vt(e,r,t,n),r=He(e.parent.id,e.name),e.bb=$[r],$[r]=e}function S(e){return(e&61440)===16384}function Or(e){var r=["r","w","rw"][e&3];return e&512&&(r+="w"),r}function te(e,r){if(Ar)return 0;if(!r.includes("r")||e.mode&292){if(r.includes("w")&&!(e.mode&146)||r.includes("x")&&!(e.mode&73))return 2}else return 2;return 0}function Lr(e,r){if(!S(e.mode))return 54;try{return G(e,r),20}catch{}return te(e,"wx")}function xr(e,r,t){try{var n=G(e,r)}catch(i){return i.Pa}if(e=te(e,"wx"))return e;if(t){if(!S(n.mode))return 54;if(n===n.parent||Je(n)==="/")return 10}else if(S(n.mode))return 31;return 0}function Ee(e){if(!e)throw new f(63);return e}function A(e){if(e=re[e],!e)throw new f(8);return e}function Tr(e,r=-1){if(e=Object.assign(new yt,e),r==-1)e:{for(r=0;4096>=r;r++)if(!re[r])break e;throw new f(33)}return e.fd=r,re[r]=e}function _t(e,r=-1){return e=Tr(e,r),e.Ma?.Rb?.(e),e}function er(e,r,t){var n=e?.Ma.Ua;e=n?e:r,n??=r.La.Ua,Ee(n),n(e,t)}var gt={open(e){e.Ma=Mr[e.node.rdev].Ma,e.Ma.open?.(e)},Va(){throw new f(70)}};function rr(e,r){Mr[e]={Ma:r}}function Pr(e,r){var t=r==="/";if(t&&Ze)throw new f(10);if(!t&&r){var n=O(r,{ob:!1});if(r=n.path,n=n.node,n.ab)throw new f(10);if(!S(n.mode))throw new f(54)}r={type:e,Wb:{},zb:r,Ib:[]},e=e.Xa(r),e.Xa=r,r.root=e,t?Ze=e:n&&(n.ab=r,n.Xa&&n.Xa.Ib.push(r))}function qe(e,r,t){var n=O(e,{parent:!0}).node;if(e=ge(e),!e)throw new f(28);if(e==="."||e==="..")throw new f(20);var i=Lr(n,e);if(i)throw new f(i);if(!n.La.hb)throw new f(63);return n.La.hb(n,e,r,t)}function kt(e,r=438){return qe(e,r&4095|32768,0)}function D(e,r=511){return qe(e,r&1023|16384,0)}function Me(e,r,t){typeof t>"u"&&(t=r,r=438),qe(e,r|8192,t)}function tr(e,r){if(!ct(e))throw new f(44);var t=O(r,{parent:!0}).node;if(!t)throw new f(44);r=ge(r);var n=Lr(t,r);if(n)throw new f(n);if(!t.La.symlink)throw new f(63);t.La.symlink(t,r,e)}function Ur(e){var r=O(e,{parent:!0}).node;e=ge(e);var t=G(r,e),n=xr(r,e,!0);if(n)throw new f(n);if(!r.La.rmdir)throw new f(63);if(t.ab)throw new f(10);r.La.rmdir(r,e),Ke(t)}function Dr(e){var r=O(e,{parent:!0}).node;if(!r)throw new f(44);e=ge(e);var t=G(r,e),n=xr(r,e,!1);if(n)throw new f(n);if(!r.La.unlink)throw new f(63);if(t.ab)throw new f(10);r.La.unlink(r,e),Ke(t)}function fe(e,r){return e=O(e,{$a:!r}).node,Ee(e.La.Ta)(e)}function Ir(e,r,t,n){er(e,r,{mode:t&4095|r.mode&-4096,ctime:Date.now(),Fb:n})}function Ne(e,r){e=typeof e=="string"?O(e,{$a:!0}).node:e,Ir(null,e,r)}function Wr(e,r,t){if(S(r.mode))throw new f(31);if((r.mode&61440)!==32768)throw new f(28);var n=te(r,"w");if(n)throw new f(n);er(e,r,{size:t,timestamp:Date.now()})}function ne(e,r,t=438){if(e==="")throw new f(44);if(typeof r=="string"){var n={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(typeof n>"u")throw Error(`Unknown file open mode: ${r}`);r=n}if(t=r&64?t&4095|32768:0,typeof e=="object")n=e;else{var i=e.endsWith("/");e=O(e,{$a:!(r&131072),Jb:!0}),n=e.node,e=e.path}var a=!1;if(r&64)if(n){if(r&128)throw new f(20)}else{if(i)throw new f(31);n=qe(e,t|511,0),a=!0}if(!n)throw new f(44);if((n.mode&61440)===8192&&(r&=-513),r&65536&&!S(n.mode))throw new f(54);if(!a&&(i=n?(n.mode&61440)===40960?32:S(n.mode)&&(Or(r)!=="r"||r&576)?31:te(n,Or(r)):44))throw new f(i);return r&512&&!a&&(i=n,i=typeof i=="string"?O(i,{$a:!0}).node:i,Wr(null,i,0)),r&=-131713,i=Tr({node:n,path:Je(n),flags:r,seekable:!0,position:0,Ma:n.Ma,Lb:[],error:!1}),i.Ma.open&&i.Ma.open(i),a&&Ne(n,t&511),!s.logReadFiles||r&1||e in Sr||(Sr[e]=1),i}function nr(e){if(e.fd===null)throw new f(8);e.pb&&(e.pb=null);try{e.Ma.close&&e.Ma.close(e)}catch(r){throw r}finally{re[e.fd]=null}e.fd=null}function jr(e,r,t){if(e.fd===null)throw new f(8);if(!e.seekable||!e.Ma.Va)throw new f(70);if(t!=0&&t!=1&&t!=2)throw new f(28);e.position=e.Ma.Va(e,r,t),e.Lb=[]}function zr(e,r,t,n,i){if(0>n||0>i)throw new f(28);if(e.fd===null)throw new f(8);if((e.flags&2097155)===1)throw new f(8);if(S(e.node.mode))throw new f(31);if(!e.Ma.read)throw new f(28);var a=typeof i<"u";if(!a)i=e.position;else if(!e.seekable)throw new f(70);return r=e.Ma.read(e,r,t,n,i),a||(e.position+=r),r}function Qr(e,r,t,n,i){if(0>n||0>i)throw new f(28);if(e.fd===null)throw new f(8);if((e.flags&2097155)===0)throw new f(8);if(S(e.node.mode))throw new f(31);if(!e.Ma.write)throw new f(28);e.seekable&&e.flags&1024&&jr(e,0,2);var a=typeof i<"u";if(!a)i=e.position;else if(!e.seekable)throw new f(70);return r=e.Ma.write(e,r,t,n,i,void 0),a||(e.position+=r),r}function Et(e){var r=r||0;r=ne(e,r),e=fe(e).size;var t=new Uint8Array(e);return zr(r,t,0,e,0),nr(r),t}function B(e,r,t){e=Ce("/dev/"+e);var n=qr(!!r,!!t);B.yb??(B.yb=64);var i=B.yb++<<8|0;rr(i,{open(a){a.seekable=!1},close(){t?.buffer?.length&&t(10)},read(a,u,c,b){for(var p=0,g=0;g<b;g++){try{var M=r()}catch{throw new f(29)}if(M===void 0&&p===0)throw new f(6);if(M==null)break;p++,u[c+g]=M}return p&&(a.node.atime=Date.now()),p},write(a,u,c,b){for(var p=0;p<b;p++)try{t(u[c+p])}catch{throw new f(29)}return b&&(a.node.mtime=a.node.ctime=Date.now()),p}}),Me(e,n,i)}var _={};function Z(e,r,t){if(r.charAt(0)==="/")return r;if(e=e===-100?"/":A(e).path,r.length==0){if(!t)throw new f(44);return e}return e+"/"+r}function Ae(e,r){v[e>>2]=r.dev,v[e+4>>2]=r.mode,v[e+8>>2]=r.nlink,v[e+12>>2]=r.uid,v[e+16>>2]=r.gid,v[e+20>>2]=r.rdev,x[e+24>>3]=BigInt(r.size),k[e+32>>2]=4096,k[e+36>>2]=r.blocks;var t=r.atime.getTime(),n=r.mtime.getTime(),i=r.ctime.getTime();return x[e+40>>3]=BigInt(Math.floor(t/1e3)),v[e+48>>2]=t%1e3*1e6,x[e+56>>3]=BigInt(Math.floor(n/1e3)),v[e+64>>2]=n%1e3*1e6,x[e+72>>3]=BigInt(Math.floor(i/1e3)),v[e+80>>2]=i%1e3*1e6,x[e+88>>3]=BigInt(r.ino),0}var Se=void 0,Re=()=>{var e=k[+Se>>2];return Se+=4,e},ir=0,qt=[0,31,60,91,121,152,182,213,244,274,305,335],Mt=[0,31,59,90,120,151,181,212,243,273,304,334],he={},Fr=e=>{$e=e,_e||0<ir||(s.onExit?.(e),ye=!0),pe(e,new Ye(e))},Nt=e=>{if(!ye)try{e()}catch(r){r instanceof Ye||r=="unwind"||pe(1,r)}finally{if(!(_e||0<ir))try{$e=e=$e,Fr(e)}catch(r){r instanceof Ye||r=="unwind"||pe(1,r)}}},or={},$r=()=>{if(!ar){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:We||"./this.program"},r;for(r in or)or[r]===void 0?delete e[r]:e[r]=or[r];var t=[];for(r in e)t.push(`${r}=${e[r]}`);ar=t}return ar},ar,At=(e,r,t,n)=>{var i={string:p=>{var g=0;if(p!=null&&p!==0){g=ee(p)+1;var M=H(g);U(p,N,M,g),g=M}return g},array:p=>{var g=H(p.length);return q.set(p,g),g}};e=s["_"+e];var a=[],u=0;if(n)for(var c=0;c<n.length;c++){var b=i[t[c]];b?(u===0&&(u=Te()),a[c]=b(n[c])):a[c]=n[c]}return t=e(...a),t=(function(p){return u!==0&&xe(u),r==="string"?E(p):r==="boolean"?!!p:p})(t)},Oe=e=>{var r=ee(e)+1,t=Le(r);return t&&U(e,N,t,r),t},J,ur=[],V=e=>{J.delete(X.get(e)),X.set(e,null),ur.push(e)},Br=e=>{const r=e.length;return[r%128|128,r>>7,...e]},St={i:127,p:127,j:126,f:125,d:124,e:111},Vr=e=>Br(Array.from(e,r=>St[r])),me=(e,r)=>{if(!J){J=new WeakMap;var t=X.length;if(J)for(var n=0;n<0+t;n++){var i=X.get(n);i&&J.set(i,n)}}if(t=J.get(e)||0)return t;t=ur.length?ur.pop():X.grow(1);try{X.set(t,e)}catch(a){if(!(a instanceof TypeError))throw a;r=Uint8Array.of(0,97,115,109,1,0,0,0,1,...Br([1,96,...Vr(r.slice(1)),...Vr(r[0]==="v"?"":r[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),r=new WebAssembly.Module(r),r=new WebAssembly.Instance(r,{e:{f:e}}).exports.f,X.set(t,r)}return J.set(e,t),t};if($=Array(4096),Pr(d,"/"),D("/tmp"),D("/home"),D("/home/web_user"),(function(){D("/dev"),rr(259,{read:()=>0,write:(n,i,a,u)=>u,Va:()=>0}),Me("/dev/null",259),Er(1280,pt),Er(1536,wt),Me("/dev/tty",1280),Me("/dev/tty1",1536);var e=new Uint8Array(1024),r=0,t=()=>(r===0&&(gr(e),r=e.byteLength),e[--r]);B("random",t),B("urandom",t),D("/dev/shm"),D("/dev/shm/tmp")})(),(function(){D("/proc");var e=D("/proc/self");D("/proc/self/fd"),Pr({Xa(){var r=Rr(e,"fd",16895,73);return r.Ma={Va:d.Ma.Va},r.La={lookup(t,n){t=+n;var i=A(t);return t={parent:null,Xa:{zb:"fake"},La:{readlink:()=>i.path},id:t+1},t.parent=t},readdir(){return Array.from(re.entries()).filter(([,t])=>t).map(([t])=>t.toString())}},r}},"/proc/self/fd")})(),s.noExitRuntime&&(_e=s.noExitRuntime),s.print&&(Fe=s.print),s.printErr&&(Y=s.printErr),s.wasmBinary&&(oe=s.wasmBinary),s.thisProgram&&(We=s.thisProgram),s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);0<s.preInit.length;)s.preInit.shift()();s.stackSave=()=>Te(),s.stackRestore=e=>xe(e),s.stackAlloc=e=>H(e),s.cwrap=(e,r,t,n)=>{var i=!t||t.every(a=>a==="number"||a==="boolean");return r!=="string"&&i&&!n?s["_"+e]:(...a)=>At(e,r,t,a)},s.addFunction=me,s.removeFunction=V,s.UTF8ToString=E,s.stringToNewUTF8=Oe,s.writeArrayToMemory=(e,r)=>{q.set(e,r)};var Le,ce,Xr,Yr,xe,H,Te,Pe,X,Rt={a:(e,r,t,n)=>ue(`Assertion failed: ${E(e)}, at: `+[r?E(r):"unknown filename",t,n?E(n):"unknown function"]),i:function(e,r){try{return e=E(e),Ne(e,r),0}catch(t){if(typeof _>"u"||t.name!=="ErrnoError")throw t;return-t.Pa}},L:function(e,r,t){try{if(r=E(r),r=Z(e,r),t&-8)return-28;var n=O(r,{$a:!0}).node;return n?(e="",t&4&&(e+="r"),t&2&&(e+="w"),t&1&&(e+="x"),e&&te(n,e)?-2:0):-44}catch(i){if(typeof _>"u"||i.name!=="ErrnoError")throw i;return-i.Pa}},j:function(e,r){try{var t=A(e);return Ir(t,t.node,r,!1),0}catch(n){if(typeof _>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},h:function(e){try{var r=A(e);return er(r,r.node,{timestamp:Date.now(),Fb:!1}),0}catch(t){if(typeof _>"u"||t.name!=="ErrnoError")throw t;return-t.Pa}},b:function(e,r,t){Se=t;try{var n=A(e);switch(r){case 0:var i=Re();if(0>i)break;for(;re[i];)i++;return _t(n,i).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:return i=Re(),n.flags|=i,0;case 12:return i=Re(),ae[i+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(a){if(typeof _>"u"||a.name!=="ErrnoError")throw a;return-a.Pa}},g:function(e,r){try{var t=A(e),n=t.node,i=t.Ma.Ta;e=i?t:n,i??=n.La.Ta,Ee(i);var a=i(e);return Ae(r,a)}catch(u){if(typeof _>"u"||u.name!=="ErrnoError")throw u;return-u.Pa}},H:function(e,r){r=-9007199254740992>r||9007199254740992<r?NaN:Number(r);try{if(isNaN(r))return-61;var t=A(e);if(0>r||(t.flags&2097155)===0)throw new f(28);return Wr(t,t.node,r),0}catch(n){if(typeof _>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},G:function(e,r){try{if(r===0)return-28;var t=ee("/")+1;return r<t?-68:(U("/",N,e,r),t)}catch(n){if(typeof _>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},K:function(e,r){try{return e=E(e),Ae(r,fe(e,!0))}catch(t){if(typeof _>"u"||t.name!=="ErrnoError")throw t;return-t.Pa}},C:function(e,r,t){try{return r=E(r),r=Z(e,r),D(r,t),0}catch(n){if(typeof _>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},J:function(e,r,t,n){try{r=E(r);var i=n&256;return r=Z(e,r,n&4096),Ae(t,i?fe(r,!0):fe(r))}catch(a){if(typeof _>"u"||a.name!=="ErrnoError")throw a;return-a.Pa}},x:function(e,r,t,n){Se=n;try{r=E(r),r=Z(e,r);var i=n?Re():0;return ne(r,t,i).fd}catch(a){if(typeof _>"u"||a.name!=="ErrnoError")throw a;return-a.Pa}},v:function(e,r,t,n){try{if(r=E(r),r=Z(e,r),0>=n)return-28;var i=O(r).node;if(!i)throw new f(44);if(!i.La.readlink)throw new f(28);var a=i.La.readlink(i),u=Math.min(n,ee(a)),c=q[t+u];return U(a,N,t,n+1),q[t+u]=c,u}catch(b){if(typeof _>"u"||b.name!=="ErrnoError")throw b;return-b.Pa}},u:function(e){try{return e=E(e),Ur(e),0}catch(r){if(typeof _>"u"||r.name!=="ErrnoError")throw r;return-r.Pa}},f:function(e,r){try{return e=E(e),Ae(r,fe(e))}catch(t){if(typeof _>"u"||t.name!=="ErrnoError")throw t;return-t.Pa}},r:function(e,r,t){try{if(r=E(r),r=Z(e,r),t)if(t===512)Ur(r);else return-28;else Dr(r);return 0}catch(n){if(typeof _>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},q:function(e,r,t){try{r=E(r),r=Z(e,r,!0);var n=Date.now(),i,a;if(t){var u=v[t>>2]+4294967296*k[t+4>>2],c=k[t+8>>2];c==1073741823?i=n:c==1073741822?i=null:i=1e3*u+c/1e6,t+=16,u=v[t>>2]+4294967296*k[t+4>>2],c=k[t+8>>2],c==1073741823?a=n:c==1073741822?a=null:a=1e3*u+c/1e6}else a=i=n;if((a??i)!==null){e=i;var b=O(r,{$a:!0}).node;Ee(b.La.Ua)(b,{atime:e,mtime:a})}return 0}catch(p){if(typeof _>"u"||p.name!=="ErrnoError")throw p;return-p.Pa}},m:()=>ue(""),l:()=>{_e=!1,ir=0},A:function(e,r){e=-9007199254740992>e||9007199254740992<e?NaN:Number(e),e=new Date(1e3*e),k[r>>2]=e.getSeconds(),k[r+4>>2]=e.getMinutes(),k[r+8>>2]=e.getHours(),k[r+12>>2]=e.getDate(),k[r+16>>2]=e.getMonth(),k[r+20>>2]=e.getFullYear()-1900,k[r+24>>2]=e.getDay();var t=e.getFullYear();k[r+28>>2]=(t%4!==0||t%100===0&&t%400!==0?Mt:qt)[e.getMonth()]+e.getDate()-1|0,k[r+36>>2]=-(60*e.getTimezoneOffset()),t=new Date(e.getFullYear(),6,1).getTimezoneOffset();var n=new Date(e.getFullYear(),0,1).getTimezoneOffset();k[r+32>>2]=(t!=n&&e.getTimezoneOffset()==Math.min(n,t))|0},y:function(e,r,t,n,i,a,u){i=-9007199254740992>i||9007199254740992<i?NaN:Number(i);try{var c=A(n);if((r&2)!==0&&(t&2)===0&&(c.flags&2097155)!==2)throw new f(2);if((c.flags&2097155)===1)throw new f(2);if(!c.Ma.ib)throw new f(43);if(!e)throw new f(28);var b=c.Ma.ib(c,e,i,r,t),p=b.Kb;return k[a>>2]=b.Ab,v[u>>2]=p,0}catch(g){if(typeof _>"u"||g.name!=="ErrnoError")throw g;return-g.Pa}},z:function(e,r,t,n,i,a){a=-9007199254740992>a||9007199254740992<a?NaN:Number(a);try{var u=A(i);if(t&2){if(t=a,(u.node.mode&61440)!==32768)throw new f(43);if(!(n&2)){var c=N.slice(e,e+r);u.Ma.jb&&u.Ma.jb(u,c,t,r,n)}}}catch(b){if(typeof _>"u"||b.name!=="ErrnoError")throw b;return-b.Pa}},n:(e,r)=>{if(he[e]&&(clearTimeout(he[e].id),delete he[e]),!r)return 0;var t=setTimeout(()=>{delete he[e],Nt(()=>Yr(e,performance.now()))},r);return he[e]={id:t,Xb:r},0},B:(e,r,t,n)=>{var i=new Date().getFullYear(),a=new Date(i,0,1).getTimezoneOffset();i=new Date(i,6,1).getTimezoneOffset(),v[e>>2]=60*Math.max(a,i),k[r>>2]=+(a!=i),r=u=>{var c=Math.abs(u);return`UTC${0<=u?"-":"+"}${String(Math.floor(c/60)).padStart(2,"0")}${String(c%60).padStart(2,"0")}`},e=r(a),r=r(i),i<a?(U(e,N,t,17),U(r,N,n,17)):(U(e,N,n,17),U(r,N,t,17))},d:()=>Date.now(),s:()=>2147483648,c:()=>performance.now(),o:e=>{var r=N.length;if(e>>>=0,2147483648<e)return!1;for(var t=1;4>=t;t*=2){var n=r*(1+.2/t);n=Math.min(n,e+100663296);e:{n=(Math.min(2147483648,65536*Math.ceil(Math.max(e,n)/65536))-Pe.buffer.byteLength+65535)/65536|0;try{Pe.grow(n),cr();var i=1;break e}catch{}i=void 0}if(i)return!0}return!1},E:(e,r)=>{var t=0,n=0,i;for(i of $r()){var a=r+t;v[e+n>>2]=a,t+=U(i,N,a,1/0)+1,n+=4}return 0},F:(e,r)=>{var t=$r();v[e>>2]=t.length,e=0;for(var n of t)e+=ee(n)+1;return v[r>>2]=e,0},e:function(e){try{var r=A(e);return nr(r),0}catch(t){if(typeof _>"u"||t.name!=="ErrnoError")throw t;return t.Pa}},p:function(e,r){try{var t=A(e);return q[r]=t.tty?2:S(t.mode)?3:(t.mode&61440)===40960?7:4,ae[r+2>>1]=0,x[r+8>>3]=BigInt(0),x[r+16>>3]=BigInt(0),0}catch(n){if(typeof _>"u"||n.name!=="ErrnoError")throw n;return n.Pa}},w:function(e,r,t,n){try{e:{var i=A(e);e=r;for(var a,u=r=0;u<t;u++){var c=v[e>>2],b=v[e+4>>2];e+=8;var p=zr(i,q,c,b,a);if(0>p){var g=-1;break e}if(r+=p,p<b)break;typeof a<"u"&&(a+=p)}g=r}return v[n>>2]=g,0}catch(M){if(typeof _>"u"||M.name!=="ErrnoError")throw M;return M.Pa}},D:function(e,r,t,n){r=-9007199254740992>r||9007199254740992<r?NaN:Number(r);try{if(isNaN(r))return 61;var i=A(e);return jr(i,r,t),x[n>>3]=BigInt(i.position),i.pb&&r===0&&t===0&&(i.pb=null),0}catch(a){if(typeof _>"u"||a.name!=="ErrnoError")throw a;return a.Pa}},I:function(e){try{var r=A(e);return r.Ma?.fsync?.(r)}catch(t){if(typeof _>"u"||t.name!=="ErrnoError")throw t;return t.Pa}},t:function(e,r,t,n){try{e:{var i=A(e);e=r;for(var a,u=r=0;u<t;u++){var c=v[e>>2],b=v[e+4>>2];e+=8;var p=Qr(i,q,c,b,a);if(0>p){var g=-1;break e}if(r+=p,p<b)break;typeof a<"u"&&(a+=p)}g=r}return v[n>>2]=g,0}catch(M){if(typeof _>"u"||M.name!=="ErrnoError")throw M;return M.Pa}},k:Fr};function sr(){function e(){if(s.calledRun=!0,!ye){if(!s.noFSInit&&!Nr){var r,t;Nr=!0,r??=s.stdin,t??=s.stdout,n??=s.stderr,r?B("stdin",r):tr("/dev/tty","/dev/stdin"),t?B("stdout",null,t):tr("/dev/tty","/dev/stdout"),n?B("stderr",null,n):tr("/dev/tty1","/dev/stderr"),ne("/dev/stdin",0),ne("/dev/stdout",1),ne("/dev/stderr",1)}if(lr.N(),Ar=!1,s.onRuntimeInitialized?.(),s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;){var n=s.postRun.shift();pr.push(n)}dr(pr)}}if(0<C)se=sr;else{if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)ht();dr(wr),0<C?se=sr:s.setStatus?(s.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>s.setStatus(""),1),e()},1)):e()}}var lr;return(async function(){function e(t){return t=lr=t.exports,s._sqlite3_free=t.P,s._sqlite3_value_text=t.Q,s._sqlite3_prepare_v2=t.R,s._sqlite3_step=t.S,s._sqlite3_reset=t.T,s._sqlite3_exec=t.U,s._sqlite3_finalize=t.V,s._sqlite3_column_name=t.W,s._sqlite3_column_text=t.X,s._sqlite3_column_type=t.Y,s._sqlite3_errmsg=t.Z,s._sqlite3_clear_bindings=t._,s._sqlite3_value_blob=t.$,s._sqlite3_value_bytes=t.aa,s._sqlite3_value_double=t.ba,s._sqlite3_value_int=t.ca,s._sqlite3_value_type=t.da,s._sqlite3_result_blob=t.ea,s._sqlite3_result_double=t.fa,s._sqlite3_result_error=t.ga,s._sqlite3_result_int=t.ha,s._sqlite3_result_int64=t.ia,s._sqlite3_result_null=t.ja,s._sqlite3_result_text=t.ka,s._sqlite3_aggregate_context=t.la,s._sqlite3_column_count=t.ma,s._sqlite3_data_count=t.na,s._sqlite3_column_blob=t.oa,s._sqlite3_column_bytes=t.pa,s._sqlite3_column_double=t.qa,s._sqlite3_bind_blob=t.ra,s._sqlite3_bind_double=t.sa,s._sqlite3_bind_int=t.ta,s._sqlite3_bind_text=t.ua,s._sqlite3_bind_parameter_index=t.va,s._sqlite3_sql=t.wa,s._sqlite3_normalized_sql=t.xa,s._sqlite3_changes=t.ya,s._sqlite3_close_v2=t.za,s._sqlite3_create_function_v2=t.Aa,s._sqlite3_update_hook=t.Ba,s._sqlite3_open=t.Ca,Le=s._malloc=t.Da,ce=s._free=t.Ea,s._RegisterExtensionFunctions=t.Fa,Xr=t.Ga,Yr=t.Ha,xe=t.Ia,H=t.Ja,Te=t.Ka,Pe=t.M,X=t.O,cr(),C--,s.monitorRunDependencies?.(C),C==0&&se&&(t=se,se=null,t()),lr}C++,s.monitorRunDependencies?.(C);var r={a:Rt};return s.instantiateWasm?new Promise(t=>{s.instantiateWasm(r,(n,i)=>{t(e(n))})}):(Xe??=s.locateFile?s.locateFile("sql-wasm.wasm",we):we+"sql-wasm.wasm",e((await ft(r)).instance))})(),sr(),I}),z)};j.exports=Q,j.exports.default=Q})(hr)),hr.exports}var ot=an();const un=nn(ot),fn=on({__proto__:null,default:un},[ot]);export{fn as s};
@@ -1,4 +1,56 @@
1
- "use strict";(()=>{var B=[{id:"chat",label:"Chat"},{id:"terminal",label:"Terminal"},{id:"files",label:"Files"},{id:"memory",label:"Memory"}],Z="slicc-hidden-tabs",V=["terminal","memory"];function tt(){try{let r=localStorage.getItem(Z);return r?new Set(JSON.parse(r)):new Set(V)}catch{return new Set(V)}}var H=B.filter(r=>!tt().has(r.id)),C="chat",lt=new Set(B.map(r=>r.id));function l(r,t=C){return r&&r.length>0?r:t}var et=["top-left","top-right","bottom-left","bottom-right"],rt="top-right",nt=6,at=12,ot=.6;function b(r,t=rt){return et.includes(r)?r:t}function T(r={}){return{open:r.open??!1,activeTab:l(r.activeTab,C),corner:b(r.corner)}}function z(r){return{...r,open:!r.open}}function _(r,t){return r.open===t?r:{...r,open:t}}function w(r,t){let e=l(t,r.activeTab);return r.activeTab===e?r:{...r,activeTab:e}}function I(r,t){let e=b(t,r.corner);return r.corner===e?r:{...r,corner:e}}function R(r,t){return r>=nt||r>=at&&t>=ot}function j({clientX:r,clientY:t,viewportWidth:e,viewportHeight:n,velocityXPxPerMs:a=0,velocityYPxPerMs:o=0,flickProjectionMs:i=180}){let s=$(r+a*i,0,e),d=$(t+o*i,0,n),u=s<e/2?"left":"right";return`${d<n/2?"top":"bottom"}-${u}`}function $(r,t,e){return Math.min(Math.max(r,t),e)}var F="slicc-electron-overlay:set-tab";var k="slicc-electron-overlay-root",U="slicc-electron-overlay",L="slicc-electron-launcher",O="slicc-electron-sidebar",v="",h=18,G="slicc-electron-overlay-launcher-corner";function X(r,t){let e=r.createElement("style");return e.textContent=t,e}function K(r){let t=r.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("aria-hidden","true");let e=[{cx:"9",cy:"7.2",r:"4.1"},{cx:"15.2",cy:"8.1",r:"4"}];for(let{cx:a,cy:o,r:i}of e){let s=r.createElementNS("http://www.w3.org/2000/svg","circle");s.setAttribute("cx",a),s.setAttribute("cy",o),s.setAttribute("r",i),t.appendChild(s)}let n=r.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d","M9.8 12.4h5.1L12.4 21z"),t.appendChild(n),t}var D=`
1
+ "use strict";(()=>{var H=[{id:"chat",label:"Chat"},{id:"terminal",label:"Terminal"},{id:"files",label:"Files"},{id:"memory",label:"Memory"}],et="slicc-hidden-tabs",V=["terminal","memory"];function rt(){try{let r=localStorage.getItem(et);return r?new Set(JSON.parse(r)):new Set(V)}catch{return new Set(V)}}var Z=H.filter(r=>!rt().has(r.id)),C="chat",ht=new Set(H.map(r=>r.id));function u(r,t=C){return r&&r.length>0?r:t}var ot=["top-left","top-right","bottom-left","bottom-right","top","right","bottom","left"];var nt="top-right",at=6,it=12,st=.6;function m(r,t=nt){return ot.includes(r)?r:t}function _(r={}){return{open:r.open??!1,activeTab:u(r.activeTab,C),corner:m(r.corner)}}function j(r){return{...r,open:!r.open}}function L(r,t){return r.open===t?r:{...r,open:t}}function k(r,t){let e=u(t,r.activeTab);return r.activeTab===e?r:{...r,activeTab:e}}function R(r,t){let e=m(t,r.corner);return r.corner===e?r:{...r,corner:e}}function I(r,t){return r>=at||r>=it&&t>=st}function z({clientX:r,clientY:t,viewportWidth:e,viewportHeight:o,velocityXPxPerMs:n=0,velocityYPxPerMs:a=0,flickProjectionMs:i=180}){let s=$(r+n*i,0,e),d=$(t+a*i,0,o),l=s/e,c=d/o,p=l>1/3&&l<2/3,b=c>1/3&&c<2/3;if(p&&b){let f=c,g=1-c,S=l,h=1-l,A=Math.min(f,g,S,h);return A===f?"top":A===g?"bottom":A===S?"left":"right"}if(p)return c<.5?"top":"bottom";if(b)return l<.5?"left":"right";let E=l<.5?"left":"right";return`${c<.5?"top":"bottom"}-${E}`}function $(r,t,e){return Math.min(Math.max(r,t),e)}var F="slicc-electron-overlay:set-tab";var W=`<?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="100%" height="100%"><g transform="translate(191.47118749999993, 12.583024999999978) scale(1.1115000000000002)"><g transform="translate(0, 0)"><g id="Cone">
3
+ <path id="Cone_Bottom" data-name="Cone Bottom" d="M108.22,414.88l189.84,460.03c1.36,3.3,6.09,3.16,7.25-.22l159.34-463.34c.87-2.53-1.03-5.16-3.7-5.13l-349.18,3.32c-2.74.03-4.59,2.82-3.55,5.35Z" style="fill: rgb(34, 34, 34); stroke: rgb(255, 255, 255); stroke-linejoin: round; stroke-width: 20px;"/>
4
+ <g id="Waffle_Cross-Hatch" data-name="Waffle Cross-Hatch">
5
+ <path d="M261.93,482.48h0c15.03-15.03,4.46-40.72-16.79-40.83h0c-21.37-.11-32.14,25.72-17.03,40.83h0c9.34,9.34,24.48,9.34,33.82,0Z" style="fill: rgb(255, 255, 255);"/>
6
+ <path d="M384.85,527.49l-51.82,51.82c-2.24,2.24-2.24,5.86,0,8.1l55.71,55.71c2.24,2.24,5.86,2.24,8.1,0h0c.62-.62,1.08-1.36,1.37-2.19l26.52-77.11c.71-2.07.18-4.36-1.37-5.91l-30.41-30.41c-2.24-2.24-5.86-2.24-8.1,0Z" style="fill: rgb(255, 255, 255);"/>
7
+ <rect x="274.59" y="463.59" width="84.73" height="95.66" rx="42.36" ry="42.36" transform="translate(-268.79 373.91) rotate(-45)" style="fill: rgb(255, 255, 255);"/>
8
+ <rect x="291.06" y="603.84" width="72.24" height="90.24" rx="36.12" ry="36.12" transform="translate(-363.06 421.43) rotate(-45)" style="fill: rgb(255, 255, 255);"/>
9
+ <path d="M371.7,684.58l-25.94,25.94c-2.24,2.24-2.24,5.86,0,8.1l12.67,12.67c2.99,2.99,8.09,1.82,9.46-2.19l13.28-38.61c1.97-5.74-5.17-10.2-9.46-5.91Z" style="fill: rgb(255, 255, 255);"/>
10
+ <path d="M159.42,564.14l2.73,6.83c1.52,3.82,6.46,4.83,9.37,1.93l2.05-2.05c2.24-2.24,2.24-5.86,0-8.1l-4.78-4.78c-4.4-4.4-11.67.39-9.37,6.17Z" style="fill: rgb(255, 255, 255);"/>
11
+ <path d="M243.92,633.11l-48.65-48.65c-5.24-5.24-13.74-5.24-18.99,0h0c-3.8,3.8-4.97,9.49-2.98,14.47l27.77,69.54c3.58,8.95,15.14,11.33,21.96,4.51l20.89-20.89c5.24-5.24,5.24-13.74,0-18.99Z" style="fill: rgb(255, 255, 255);"/>
12
+ <path d="M211.32,533.1h0c14.11-14.11,14.11-36.98,0-51.08l-34.94-34.94c-.72-.72-.72-1.89,0-2.62h0c1.16-1.16.34-3.15-1.3-3.16l-11.23-.06c-25.62-.13-43.23,25.72-33.73,49.51l5.37,13.45c1.82,4.55,4.54,8.68,8,12.15l16.74,16.74c14.11,14.11,36.98,14.11,51.08,0Z" style="fill: rgb(255, 255, 255);"/>
13
+ <path d="M263.74,792.53h0c-5.69,5.69-7.45,14.23-4.46,21.71l22.5,56.36c6.92,17.34,31.68,16.74,37.75-.92l8.66-25.2c2.5-7.28.64-15.35-4.8-20.79l-31.17-31.17c-7.87-7.87-20.62-7.87-28.48,0Z" style="fill: rgb(255, 255, 255);"/>
14
+ <path d="M392.94,503.07l40.81-40.81c2.24-2.24,5.86-2.24,8.1,0l.06.06c2.24,2.24,2.24,5.86,0,8.1l-40.81,40.81c-2.24,2.24-2.24,5.86,0,8.1l22.48,22.48c2.99,2.99,8.09,1.82,9.46-2.19l30.71-89.32c1.27-3.71-1.47-7.57-5.39-7.59l-120.63-.6c-5.11-.03-7.69,6.16-4.08,9.77l51.18,51.18c2.24,2.24,5.86,2.24,8.1,0Z" style="fill: rgb(255, 255, 255);"/>
15
+ <rect x="217.18" y="527.25" width="72.24" height="95.66" rx="36.12" ry="36.12" transform="translate(-332.45 347.55) rotate(-45)" style="fill: rgb(255, 255, 255);"/>
16
+ <path d="M350.28,739.46h0c-9.24-9.24-24.22-9.24-33.46,0l-13.94,13.94c-9.24,9.24-9.24,24.22,0,33.46l6.81,6.81c12.37,12.37,33.42,7.5,39.1-9.04l7.13-20.75c2.94-8.55.75-18.03-5.64-24.42Z" style="fill: rgb(255, 255, 255);"/>
17
+ <path d="M234.18,749.12l13.2,33.06c1.52,3.82,6.46,4.83,9.37,1.93l9.93-9.93c2.24-2.24,2.24-5.86,0-8.1l-23.13-23.13c-4.4-4.4-11.67.39-9.37,6.17Z" style="fill: rgb(255, 255, 255);"/>
18
+ <rect x="236.26" y="661.25" width="67.04" height="90.24" rx="33.52" ry="33.52" transform="translate(-420.46 397.65) rotate(-45)" style="fill: rgb(255, 255, 255);"/>
19
+ </g>
20
+ <ellipse id="Cone_Top" data-name="Cone Top" cx="288.37" cy="404.38" rx="182.34" ry="67.01" style="fill: rgb(34, 34, 34); stroke: rgb(255, 255, 255); stroke-miterlimit: 10; stroke-width: 20px;"/>
21
+ </g></g><g transform="translate(288, 250) rotate(0) scale(1) translate(-288, -250)"><path id="Scoop_Outline" data-name="Scoop Outline" d="M566.75,340.67c0-29.85-12.97-56.87-33.96-76.47,4.8-9.98,7.44-20.71,7.44-31.9,0-38.29-30.62-71.33-74.92-86.77.33-3.07.51-6.17.51-9.3,0-69.72-84.29-126.24-188.26-126.24s-188.26,56.52-188.26,126.24c0,4,.29,7.95.83,11.86-34.94,15.4-58.48,44.25-58.48,77.34,0,18.21,7.15,35.15,19.39,49.26-25.1,19.88-41.05,49.47-41.05,82.54,0,59.85,52.15,108.37,116.49,108.37,10.83,0,21.3-1.4,31.26-3.98,31.42,41.91,83.55,69.34,142.55,69.34,64.73,0,121.2-33,151.11-81.94,63.8-.57,115.34-48.85,115.34-108.34Z" style="fill: rgb(34, 34, 34); stroke: rgb(255, 255, 255); stroke-miterlimit: 10; stroke-width: 20px;"/><g id="Right_Eye" data-name="Right Eye">
22
+ <circle id="Left_Eye_Outline" data-name="Left Eye Outline" cx="383.4" cy="216.12" r="64.78" style="fill: rgb(0, 0, 0); stroke: rgb(255, 255, 255); stroke-miterlimit: 10; stroke-width: 6px;"/>
23
+ <path id="Right_Pupil" data-name="Right Pupil" d="M402.83,217.38c-.13,1.98-.7,3.97-1.76,5.81-3.71,6.43-11.93,8.63-18.36,4.92-6.43-3.71-8.63-11.93-4.92-18.36,2.32-4.02,6.4-6.38,10.7-6.69-3.8-1.78-8.03-2.8-12.51-2.8-16.37,0-29.64,13.27-29.64,29.64s13.27,29.64,29.64,29.64,29.64-13.27,29.64-29.64c0-4.48-1.02-8.72-2.81-12.53Z" style="fill: rgb(255, 255, 255);"/>
24
+ </g><g id="Left_Eye" data-name="Left Eye">
25
+ <circle id="Right_Eye_Outline" data-name="Right Eye Outline" cx="175.1" cy="250.34" r="64.78" style="fill: rgb(0, 0, 0); stroke: rgb(255, 255, 255); stroke-miterlimit: 10; stroke-width: 6px;"/>
26
+ <path id="Left_Pupil" data-name="Left Pupil" d="M213.74,233.23c-.13,1.98-.7,3.97-1.76,5.81-3.71,6.43-11.93,8.63-18.36,4.92-6.43-3.71-8.63-11.93-4.92-18.36,2.32-4.02,6.4-6.38,10.7-6.69-3.8-1.78-8.03-2.8-12.51-2.8-16.37,0-29.64,13.27-29.64,29.64s13.27,29.64,29.64,29.64,29.64-13.27,29.64-29.64c0-4.48-1.02-8.72-2.81-12.53Z" style="fill: rgb(255, 255, 255);"/>
27
+ </g></g></g></svg>`;var G=`<?xml version="1.0" encoding="UTF-8"?>
28
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="100%" height="100%"><g transform="translate(191.47118749999993, 12.583024999999978) scale(1.1115000000000002)"><g transform="translate(0, 0)"><g id="Cone">
29
+ <path id="Cone_Bottom" data-name="Cone Bottom" d="M108.22,414.88l189.84,460.03c1.36,3.3,6.09,3.16,7.25-.22l159.34-463.34c.87-2.53-1.03-5.16-3.7-5.13l-349.18,3.32c-2.74.03-4.59,2.82-3.55,5.35Z" style="fill: #fff; stroke: #000; stroke-linejoin: round; stroke-width: 20px;"/>
30
+ <g id="Waffle_Cross-Hatch" data-name="Waffle Cross-Hatch">
31
+ <path d="M261.93,482.48h0c15.03-15.03,4.46-40.72-16.79-40.83h0c-21.37-.11-32.14,25.72-17.03,40.83h0c9.34,9.34,24.48,9.34,33.82,0Z" style="fill: rgb(0, 0, 0);"/>
32
+ <path d="M384.85,527.49l-51.82,51.82c-2.24,2.24-2.24,5.86,0,8.1l55.71,55.71c2.24,2.24,5.86,2.24,8.1,0h0c.62-.62,1.08-1.36,1.37-2.19l26.52-77.11c.71-2.07.18-4.36-1.37-5.91l-30.41-30.41c-2.24-2.24-5.86-2.24-8.1,0Z" style="fill: rgb(0, 0, 0);"/>
33
+ <rect x="274.59" y="463.59" width="84.73" height="95.66" rx="42.36" ry="42.36" transform="translate(-268.79 373.91) rotate(-45)" style="fill: rgb(0, 0, 0);"/>
34
+ <rect x="291.06" y="603.84" width="72.24" height="90.24" rx="36.12" ry="36.12" transform="translate(-363.06 421.43) rotate(-45)" style="fill: rgb(0, 0, 0);"/>
35
+ <path d="M371.7,684.58l-25.94,25.94c-2.24,2.24-2.24,5.86,0,8.1l12.67,12.67c2.99,2.99,8.09,1.82,9.46-2.19l13.28-38.61c1.97-5.74-5.17-10.2-9.46-5.91Z" style="fill: rgb(0, 0, 0);"/>
36
+ <path d="M159.42,564.14l2.73,6.83c1.52,3.82,6.46,4.83,9.37,1.93l2.05-2.05c2.24-2.24,2.24-5.86,0-8.1l-4.78-4.78c-4.4-4.4-11.67.39-9.37,6.17Z" style="fill: rgb(0, 0, 0);"/>
37
+ <path d="M243.92,633.11l-48.65-48.65c-5.24-5.24-13.74-5.24-18.99,0h0c-3.8,3.8-4.97,9.49-2.98,14.47l27.77,69.54c3.58,8.95,15.14,11.33,21.96,4.51l20.89-20.89c5.24-5.24,5.24-13.74,0-18.99Z" style="fill: rgb(0, 0, 0);"/>
38
+ <path d="M211.32,533.1h0c14.11-14.11,14.11-36.98,0-51.08l-34.94-34.94c-.72-.72-.72-1.89,0-2.62h0c1.16-1.16.34-3.15-1.3-3.16l-11.23-.06c-25.62-.13-43.23,25.72-33.73,49.51l5.37,13.45c1.82,4.55,4.54,8.68,8,12.15l16.74,16.74c14.11,14.11,36.98,14.11,51.08,0Z" style="fill: rgb(0, 0, 0);"/>
39
+ <path d="M263.74,792.53h0c-5.69,5.69-7.45,14.23-4.46,21.71l22.5,56.36c6.92,17.34,31.68,16.74,37.75-.92l8.66-25.2c2.5-7.28.64-15.35-4.8-20.79l-31.17-31.17c-7.87-7.87-20.62-7.87-28.48,0Z" style="fill: rgb(0, 0, 0);"/>
40
+ <path d="M392.94,503.07l40.81-40.81c2.24-2.24,5.86-2.24,8.1,0l.06.06c2.24,2.24,2.24,5.86,0,8.1l-40.81,40.81c-2.24,2.24-2.24,5.86,0,8.1l22.48,22.48c2.99,2.99,8.09,1.82,9.46-2.19l30.71-89.32c1.27-3.71-1.47-7.57-5.39-7.59l-120.63-.6c-5.11-.03-7.69,6.16-4.08,9.77l51.18,51.18c2.24,2.24,5.86,2.24,8.1,0Z" style="fill: rgb(0, 0, 0);"/>
41
+ <rect x="217.18" y="527.25" width="72.24" height="95.66" rx="36.12" ry="36.12" transform="translate(-332.45 347.55) rotate(-45)" style="fill: rgb(0, 0, 0);"/>
42
+ <path d="M350.28,739.46h0c-9.24-9.24-24.22-9.24-33.46,0l-13.94,13.94c-9.24,9.24-9.24,24.22,0,33.46l6.81,6.81c12.37,12.37,33.42,7.5,39.1-9.04l7.13-20.75c2.94-8.55.75-18.03-5.64-24.42Z" style="fill: rgb(0, 0, 0);"/>
43
+ <path d="M234.18,749.12l13.2,33.06c1.52,3.82,6.46,4.83,9.37,1.93l9.93-9.93c2.24-2.24,2.24-5.86,0-8.1l-23.13-23.13c-4.4-4.4-11.67.39-9.37,6.17Z" style="fill: rgb(0, 0, 0);"/>
44
+ <rect x="236.26" y="661.25" width="67.04" height="90.24" rx="33.52" ry="33.52" transform="translate(-420.46 397.65) rotate(-45)" style="fill: rgb(0, 0, 0);"/>
45
+ </g>
46
+ <ellipse id="Cone_Top" data-name="Cone Top" cx="288.37" cy="404.38" rx="182.34" ry="67.01" style="fill: #fff; stroke: #000; stroke-miterlimit: 10; stroke-width: 20px;"/>
47
+ </g></g><g transform="translate(288, 250) rotate(0) scale(1) translate(-288, -250)"><path id="Scoop_Outline" data-name="Scoop Outline" d="M566.75,340.67c0-29.85-12.97-56.87-33.96-76.47,4.8-9.98,7.44-20.71,7.44-31.9,0-38.29-30.62-71.33-74.92-86.77.33-3.07.51-6.17.51-9.3,0-69.72-84.29-126.24-188.26-126.24s-188.26,56.52-188.26,126.24c0,4,.29,7.95.83,11.86-34.94,15.4-58.48,44.25-58.48,77.34,0,18.21,7.15,35.15,19.39,49.26-25.1,19.88-41.05,49.47-41.05,82.54,0,59.85,52.15,108.37,116.49,108.37,10.83,0,21.3-1.4,31.26-3.98,31.42,41.91,83.55,69.34,142.55,69.34,64.73,0,121.2-33,151.11-81.94,63.8-.57,115.34-48.85,115.34-108.34Z" style="fill: #fff; stroke: #000; stroke-miterlimit: 10; stroke-width: 20px;"/><g id="Right_Eye" data-name="Right Eye">
48
+ <circle id="Left_Eye_Outline" data-name="Left Eye Outline" cx="383.4" cy="216.12" r="64.78" style="fill: #fff; stroke: #000; stroke-miterlimit: 10; stroke-width: 6px;"/>
49
+ <path id="Right_Pupil" data-name="Right Pupil" d="M402.83,217.38c-.13,1.98-.7,3.97-1.76,5.81-3.71,6.43-11.93,8.63-18.36,4.92-6.43-3.71-8.63-11.93-4.92-18.36,2.32-4.02,6.4-6.38,10.7-6.69-3.8-1.78-8.03-2.8-12.51-2.8-16.37,0-29.64,13.27-29.64,29.64s13.27,29.64,29.64,29.64,29.64-13.27,29.64-29.64c0-4.48-1.02-8.72-2.81-12.53Z" style="fill: rgb(0, 0, 0);"/>
50
+ </g><g id="Left_Eye" data-name="Left Eye">
51
+ <circle id="Right_Eye_Outline" data-name="Right Eye Outline" cx="175.1" cy="250.34" r="64.78" style="fill: #fff; stroke: #000; stroke-miterlimit: 10; stroke-width: 6px;"/>
52
+ <path id="Left_Pupil" data-name="Left Pupil" d="M213.74,233.23c-.13,1.98-.7,3.97-1.76,5.81-3.71,6.43-11.93,8.63-18.36,4.92-6.43-3.71-8.63-11.93-4.92-18.36,2.32-4.02,6.4-6.38,10.7-6.69-3.8-1.78-8.03-2.8-12.51-2.8-16.37,0-29.64,13.27-29.64,29.64s13.27,29.64,29.64,29.64,29.64-13.27,29.64-29.64c0-4.48-1.02-8.72-2.81-12.53Z" style="fill: rgb(0, 0, 0);"/>
53
+ </g></g></g></svg>`;var N="slicc-electron-overlay-root",P="slicc-electron-overlay",T="slicc-electron-launcher",O="slicc-electron-sidebar",v="",y=18,J="slicc-electron-overlay-launcher-corner";function D(r,t){let e=r.createElement("style");return e.textContent=t,e}function K(r){return r.replace(/<\?xml[^?]*\?>\s*/i,"")}var B=`
2
54
  :host {
3
55
  color-scheme: dark light;
4
56
  --s2-gray-25: #1a1a1a;
@@ -47,56 +99,112 @@
47
99
  --s2-shadow-elevated: 0 10px 32px rgba(0, 0, 0, 0.14), 0 2px 10px rgba(0, 0, 0, 0.08);
48
100
  }
49
101
  }
50
- `;function it(r,t){try{let e=new URL(r,window.location.href);return e.searchParams.set("tab",t),e.toString()}catch{return r}}var P=class extends HTMLElement{static observedAttributes=["open","corner"];button=null;pointerState=null;suppressClick=!1;connectedCallback(){this.shadowRoot||this.render(),this.sync()}attributeChangedCallback(){this.sync()}render(){let t=this.attachShadow({mode:"open"}),e=this.ownerDocument,n=h;t.appendChild(X(e,`
51
- ${D}
102
+ `;function dt(r,t){try{let e=new URL(r,window.location.href);return e.searchParams.set("tab",t),e.toString()}catch{return r}}var Y=class extends HTMLElement{static observedAttributes=["open","corner"];button=null;pointerState=null;suppressClick=!1;connectedCallback(){this.shadowRoot||this.render(),this.sync()}attributeChangedCallback(){this.sync()}render(){let t=this.attachShadow({mode:"open"}),e=this.ownerDocument,o=y;t.appendChild(D(e,`
103
+ ${B}
52
104
  :host {
53
105
  all: initial;
54
106
  position: fixed;
55
- top: ${n}px;
56
- right: ${n}px;
107
+ top: ${o}px;
108
+ right: ${o}px;
57
109
  z-index: 1;
58
110
  pointer-events: auto;
59
111
  display: block;
60
112
  font-family: var(--s2-font-family);
61
113
  transition: top var(--s2-transition-default), right var(--s2-transition-default), bottom var(--s2-transition-default), left var(--s2-transition-default);
62
114
  }
63
- :host([corner="top-left"]) { top: ${n}px; right: auto; bottom: auto; left: ${n}px; }
64
- :host([corner="top-right"]) { top: ${n}px; right: ${n}px; bottom: auto; left: auto; }
65
- :host([corner="bottom-left"]) { top: auto; right: auto; bottom: ${n}px; left: ${n}px; }
66
- :host([corner="bottom-right"]) { top: auto; right: ${n}px; bottom: ${n}px; left: auto; }
67
- :host([dragging]) { transition: none; }
115
+ /* Corner positions */
116
+ :host([corner="top-left"]) { top: ${o}px; right: auto; bottom: auto; left: ${o}px; }
117
+ :host([corner="top-right"]) { top: ${o}px; right: ${o}px; bottom: auto; left: auto; }
118
+ :host([corner="bottom-left"]) { top: auto; right: auto; bottom: ${o}px; left: ${o}px; }
119
+ :host([corner="bottom-right"]) { top: auto; right: ${o}px; bottom: ${o}px; left: auto; }
120
+ /* Edge midpoint positions \u2014 flush against edge */
121
+ :host([corner="top"]) { top: 0; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); }
122
+ :host([corner="bottom"]) { bottom: 0; left: 50%; right: auto; top: auto; transform: translateX(-50%); }
123
+ :host([corner="left"]) { left: 0; top: 50%; right: auto; bottom: auto; transform: translateY(-50%); }
124
+ :host([corner="right"]) { right: 0; top: 50%; left: auto; bottom: auto; transform: translateY(-50%); }
125
+ :host([dragging]) { transition: none; transform: none; }
68
126
  *, *::before, *::after { box-sizing: border-box; }
127
+
128
+ /* === Button base (circle mode for corners) === */
69
129
  button {
70
130
  width: 44px; height: 44px; position: relative;
71
- border: 1px solid rgba(255, 255, 255, 0.62);
131
+ border: none;
72
132
  border-radius: var(--s2-radius-pill);
73
- background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.34), transparent 34%),
74
- linear-gradient(160deg, #ffb15c 0%, color-mix(in srgb, var(--slicc-cone) 92%, #ffb15c) 34%, #a34b00 72%, #38220f 100%);
75
- color: #fff;
76
- box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 0 0 4px rgba(0, 0, 0, 0.28), 0 12px 30px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.24);
133
+ background: rgba(255, 255, 255, 0.92);
134
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
77
135
  cursor: grab;
78
- display: inline-flex; align-items: center; justify-content: center;
79
- transition: transform var(--s2-transition-default), background var(--s2-transition-default), border-color var(--s2-transition-default), box-shadow var(--s2-transition-default);
136
+ display: inline-flex; align-items: center; justify-content: center; gap: 6px;
137
+ transition: transform var(--s2-transition-default), box-shadow var(--s2-transition-default);
80
138
  backdrop-filter: blur(12px) saturate(1.05);
81
139
  touch-action: none; user-select: none; -webkit-user-select: none;
140
+ padding: 0; overflow: hidden;
82
141
  }
83
- button::before {
84
- content: ''; position: absolute; inset: -5px; border-radius: inherit;
85
- border: 1px solid rgba(255, 255, 255, 0.32); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); pointer-events: none;
142
+ @media (prefers-color-scheme: dark) {
143
+ button {
144
+ background: rgba(34, 34, 34, 0.92);
145
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
146
+ }
86
147
  }
87
148
  :host([dragging]) button { cursor: grabbing; }
88
149
  button:hover {
89
- transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.78);
90
- box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset, 0 0 0 4px rgba(0, 0, 0, 0.34), 0 16px 34px rgba(0, 0, 0, 0.44), 0 0 18px color-mix(in srgb, var(--slicc-cone) 40%, transparent);
150
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.12);
151
+ }
152
+ @media (prefers-color-scheme: dark) {
153
+ button:hover {
154
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.18);
155
+ }
91
156
  }
92
157
  button:active { transform: scale(0.96); }
93
158
  button[aria-pressed="true"] {
94
- border-color: rgba(255, 255, 255, 0.84);
95
- box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset, 0 0 0 4px rgba(0, 0, 0, 0.36), 0 16px 38px rgba(0, 0, 0, 0.46), 0 0 22px color-mix(in srgb, var(--slicc-cone) 52%, transparent);
159
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 2px var(--s2-accent);
160
+ }
161
+
162
+ /* === Tab mode (edge midpoints) === */
163
+ .tab-label { display: none; font-family: var(--s2-font-family); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
164
+ :host([corner="top"]) button,
165
+ :host([corner="bottom"]) button,
166
+ :host([corner="left"]) button,
167
+ :host([corner="right"]) button {
168
+ width: auto; height: auto;
169
+ border-radius: 0;
170
+ padding: 6px 12px;
171
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
96
172
  }
97
- svg { width: 20px; height: 20px; fill: currentColor; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55)); }
98
- `));let a=e.createElement("button");a.type="button",a.setAttribute("aria-label","Toggle SLICC overlay"),a.appendChild(K(e)),t.appendChild(a),this.button=a,this.button?.addEventListener("click",o=>{if(this.suppressClick){this.suppressClick=!1,o.preventDefault(),o.stopImmediatePropagation();return}this.dispatchEvent(new CustomEvent("slicc-overlay-toggle",{bubbles:!0,composed:!0}))}),this.button?.addEventListener("pointerdown",this.onPointerDown),this.button?.addEventListener("pointermove",this.onPointerMove),this.button?.addEventListener("pointerup",this.onPointerUp),this.button?.addEventListener("pointercancel",this.onPointerCancel)}sync(){this.button?.setAttribute("aria-pressed",String(this.hasAttribute("open")))}onPointerDown=t=>{if(!t.isPrimary||t.button!==0||!this.button)return;let e=this.getBoundingClientRect();this.pointerState={pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,startLeft:e.left,startTop:e.top,width:e.width,height:e.height,lastX:t.clientX,lastY:t.clientY,lastTimestamp:t.timeStamp,velocityX:0,velocityY:0,dragging:!1},this.suppressClick=!1,this.button.setPointerCapture(t.pointerId),t.preventDefault()};onPointerMove=t=>{let e=this.pointerState;if(!e||t.pointerId!==e.pointerId)return;let n=t.clientX-e.startX,a=t.clientY-e.startY,o=Math.hypot(n,a);!e.dragging&&R(o,0)&&(e.dragging=!0,this.setAttribute("dragging",""));let i=Math.max(t.timeStamp-e.lastTimestamp,1),s=(t.clientX-e.lastX)/i,d=(t.clientY-e.lastY)/i;if(e.velocityX=e.velocityX===0?s:e.velocityX*.35+s*.65,e.velocityY=e.velocityY===0?d:e.velocityY*.35+d*.65,e.lastX=t.clientX,e.lastY=t.clientY,e.lastTimestamp=t.timeStamp,!e.dragging)return;let u=Math.max(h,window.innerWidth-e.width-h),g=Math.max(h,window.innerHeight-e.height-h),E=W(e.startLeft+n,h,u),p=W(e.startTop+a,h,g);this.style.left=`${E}px`,this.style.top=`${p}px`,this.style.right="auto",this.style.bottom="auto",t.preventDefault()};onPointerUp=t=>{this.finishPointerInteraction(t)};onPointerCancel=t=>{this.finishPointerInteraction(t,!1)};finishPointerInteraction(t,e=!0){let n=this.pointerState;if(!n||t.pointerId!==n.pointerId||!this.button)return;let a=Math.hypot(t.clientX-n.startX,t.clientY-n.startY),o=Math.hypot(n.velocityX,n.velocityY);if(e&&(n.dragging||R(a,o))){let s=j({clientX:t.clientX,clientY:t.clientY,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,velocityXPxPerMs:n.velocityX,velocityYPxPerMs:n.velocityY});this.dispatchEvent(new CustomEvent("slicc-overlay-move",{bubbles:!0,composed:!0,detail:{corner:s}})),this.suppressClick=!0,t.preventDefault()}this.button.hasPointerCapture(t.pointerId)&&this.button.releasePointerCapture(t.pointerId),this.pointerState=null,this.removeAttribute("dragging"),this.resetDragStyles()}resetDragStyles(){this.style.left="",this.style.top="",this.style.right="",this.style.bottom=""}},Y=class extends HTMLElement{static observedAttributes=["open","active-tab","app-url"];tabButtons=new Map;iframe=null;emptyState=null;currentAppUrl=v;frameLoaded=!1;lastPostedTab=null;connectedCallback(){this.shadowRoot||this.render(),this.sync()}attributeChangedCallback(){this.sync()}render(){let t=this.attachShadow({mode:"open"}),e=this.ownerDocument,n=l(this.getAttribute("active-tab"));t.appendChild(X(e,`
99
- ${D}
173
+ :host([corner="top"]) button,
174
+ :host([corner="bottom"]) button { flex-direction: row; }
175
+ :host([corner="left"]) button,
176
+ :host([corner="right"]) button { flex-direction: column; padding: 10px 6px; }
177
+ :host([corner="left"]) .tab-label,
178
+ :host([corner="right"]) .tab-label { writing-mode: vertical-lr; }
179
+ :host([corner="right"]) .tab-label { rotate: 180deg; }
180
+
181
+ /* Rounded corners \u2014 only the two not touching the edge */
182
+ :host([corner="top"]) button { border-radius: 0 0 10px 10px; }
183
+ :host([corner="bottom"]) button { border-radius: 10px 10px 0 0; }
184
+ :host([corner="left"]) button { border-radius: 0 10px 10px 0; }
185
+ :host([corner="right"]) button { border-radius: 10px 0 0 10px; }
186
+
187
+ :host([corner="top"]) .tab-label,
188
+ :host([corner="bottom"]) .tab-label,
189
+ :host([corner="left"]) .tab-label,
190
+ :host([corner="right"]) .tab-label { display: block; }
191
+
192
+ :host([corner="top"]) .logo-icon,
193
+ :host([corner="bottom"]) .logo-icon,
194
+ :host([corner="left"]) .logo-icon,
195
+ :host([corner="right"]) .logo-icon { width: 22px; height: 22px; }
196
+
197
+ .logo-icon { width: 32px; height: 32px; pointer-events: none; }
198
+ /* Dark host: dark SVG (dark fill, white outlines) */
199
+ .logo-for-dark { display: block; }
200
+ .logo-for-light { display: none; }
201
+ @media (prefers-color-scheme: light) {
202
+ /* Light host: light SVG (white fill, black outlines) */
203
+ .logo-for-dark { display: none; }
204
+ .logo-for-light { display: block; }
205
+ }
206
+ `));let n=e.createElement("button");n.type="button",n.setAttribute("aria-label","Toggle SLICC overlay");let a=e.createElement("div");a.className="logo-icon logo-for-dark",a.innerHTML=K(W),a.setAttribute("aria-hidden","true");let i=e.createElement("div");i.className="logo-icon logo-for-light",i.innerHTML=K(G),i.setAttribute("aria-hidden","true");let s=e.createElement("span");s.className="tab-label",s.textContent="SLICC",n.appendChild(a),n.appendChild(i),n.appendChild(s),t.appendChild(n),this.button=n,this.button?.addEventListener("click",d=>{if(this.suppressClick){this.suppressClick=!1,d.preventDefault(),d.stopImmediatePropagation();return}this.dispatchEvent(new CustomEvent("slicc-overlay-toggle",{bubbles:!0,composed:!0}))}),this.button?.addEventListener("pointerdown",this.onPointerDown),this.button?.addEventListener("pointermove",this.onPointerMove),this.button?.addEventListener("pointerup",this.onPointerUp),this.button?.addEventListener("pointercancel",this.onPointerCancel)}sync(){this.button?.setAttribute("aria-pressed",String(this.hasAttribute("open")))}onPointerDown=t=>{if(!t.isPrimary||t.button!==0||!this.button)return;let e=this.getBoundingClientRect();this.pointerState={pointerId:t.pointerId,startX:t.clientX,startY:t.clientY,startLeft:e.left,startTop:e.top,width:e.width,height:e.height,lastX:t.clientX,lastY:t.clientY,lastTimestamp:t.timeStamp,velocityX:0,velocityY:0,dragging:!1},this.suppressClick=!1,this.button.setPointerCapture(t.pointerId),t.preventDefault()};onPointerMove=t=>{let e=this.pointerState;if(!e||t.pointerId!==e.pointerId)return;let o=t.clientX-e.startX,n=t.clientY-e.startY,a=Math.hypot(o,n);!e.dragging&&I(a,0)&&(e.dragging=!0,this.setAttribute("dragging",""));let i=Math.max(t.timeStamp-e.lastTimestamp,1),s=(t.clientX-e.lastX)/i,d=(t.clientY-e.lastY)/i;if(e.velocityX=e.velocityX===0?s:e.velocityX*.35+s*.65,e.velocityY=e.velocityY===0?d:e.velocityY*.35+d*.65,e.lastX=t.clientX,e.lastY=t.clientY,e.lastTimestamp=t.timeStamp,!e.dragging)return;let l=Math.max(y,window.innerWidth-e.width-y),c=Math.max(y,window.innerHeight-e.height-y),p=q(e.startLeft+o,y,l),b=q(e.startTop+n,y,c);this.style.left=`${p}px`,this.style.top=`${b}px`,this.style.right="auto",this.style.bottom="auto",t.preventDefault()};onPointerUp=t=>{this.finishPointerInteraction(t)};onPointerCancel=t=>{this.finishPointerInteraction(t,!1)};finishPointerInteraction(t,e=!0){let o=this.pointerState;if(!o||t.pointerId!==o.pointerId||!this.button)return;let n=Math.hypot(t.clientX-o.startX,t.clientY-o.startY),a=Math.hypot(o.velocityX,o.velocityY);if(e&&(o.dragging||I(n,a))){let s=z({clientX:t.clientX,clientY:t.clientY,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,velocityXPxPerMs:o.velocityX,velocityYPxPerMs:o.velocityY});this.dispatchEvent(new CustomEvent("slicc-overlay-move",{bubbles:!0,composed:!0,detail:{corner:s}})),this.suppressClick=!0,t.preventDefault()}this.button.hasPointerCapture(t.pointerId)&&this.button.releasePointerCapture(t.pointerId),this.pointerState=null,this.removeAttribute("dragging"),this.resetDragStyles()}resetDragStyles(){this.style.left="",this.style.top="",this.style.right="",this.style.bottom=""}},U=class extends HTMLElement{static observedAttributes=["open","active-tab","app-url","corner"];tabButtons=new Map;iframe=null;emptyState=null;currentAppUrl=v;frameLoaded=!1;lastPostedTab=null;connectedCallback(){this.shadowRoot||this.render(),this.sync()}attributeChangedCallback(){this.sync()}render(){let t=this.attachShadow({mode:"open"}),e=this.ownerDocument,o=u(this.getAttribute("active-tab"));t.appendChild(D(e,`
207
+ ${B}
100
208
  :host { all: initial; position: fixed; inset: 0; display: block; pointer-events: none; font-family: var(--s2-font-family); }
101
209
  :host([open]) { pointer-events: auto; }
102
210
  *, *::before, *::after { box-sizing: border-box; }
@@ -111,10 +219,32 @@
111
219
  transition: transform var(--s2-transition-default); backdrop-filter: blur(16px);
112
220
  }
113
221
  :host([open]) .sidebar { transform: translateX(0); }
222
+
223
+ /* Slide from left */
224
+ :host([corner="left"]),
225
+ :host([corner="top-left"]),
226
+ :host([corner="bottom-left"]) {
227
+ & .sidebar { right: auto; left: 12px; transform: translateX(calc(-100% - 28px)); }
228
+ }
229
+ :host([open][corner="left"]) .sidebar,
230
+ :host([open][corner="top-left"]) .sidebar,
231
+ :host([open][corner="bottom-left"]) .sidebar { transform: translateX(0); }
232
+
233
+ /* Slide from top \u2014 stays on right side */
234
+ :host([corner="top"]) .sidebar {
235
+ top: 12px; bottom: auto; height: calc(100vh - 24px);
236
+ transform: translateY(calc(-100% - 28px));
237
+ }
238
+ :host([open][corner="top"]) .sidebar { transform: translateY(0); }
239
+
240
+ /* Slide from bottom \u2014 stays on right side */
241
+ :host([corner="bottom"]) .sidebar {
242
+ top: auto; bottom: 12px; height: calc(100vh - 24px);
243
+ transform: translateY(calc(100% + 28px));
244
+ }
245
+ :host([open][corner="bottom"]) .sidebar { transform: translateY(0); }
114
246
  .header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--s2-border-subtle); background: color-mix(in srgb, var(--s2-bg-layer-1) 92%, transparent); }
115
247
  .header__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
116
- .header__logo { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(239, 112, 0, 0.9), rgba(239, 112, 0, 0.7)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
117
- .header__logo svg { width: 18px; height: 18px; fill: currentColor; }
118
248
  .header__title { font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
119
249
  .header__subtitle { font-size: 11px; color: var(--s2-content-secondary); }
120
250
  .header__close { appearance: none; border: 1px solid var(--s2-border-subtle); background: var(--s2-bg-layer-2); color: var(--s2-content-default); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
@@ -125,8 +255,8 @@
125
255
  iframe { border: 0; width: 100%; height: 100%; display: block; background: var(--s2-bg-base); }
126
256
  .empty-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--s2-content-secondary); font-size: 13px; line-height: 1.5; }
127
257
  .empty-state[hidden] { display: none; }
128
- `));let a=e.createElement("div");a.className="backdrop",a.setAttribute("part","backdrop"),a.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("slicc-overlay-close",{bubbles:!0,composed:!0}))}),t.appendChild(a);let o=e.createElement("aside");o.className="sidebar",o.setAttribute("part","sidebar"),o.setAttribute("aria-label","SLICC overlay sidebar");let i=e.createElement("header");i.className="header";let s=e.createElement("div");s.className="header__brand";let d=e.createElement("span");d.className="header__logo",d.appendChild(K(e)),s.appendChild(d);let u=e.createElement("div"),g=e.createElement("div");g.className="header__title",g.textContent="slicc";let E=e.createElement("div");E.className="header__subtitle",E.textContent="electron float",u.appendChild(g),u.appendChild(E),s.appendChild(u),i.appendChild(s);let p=e.createElement("button");p.type="button",p.className="header__close",p.setAttribute("aria-label","Close SLICC overlay"),p.textContent="\xD7",p.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("slicc-overlay-close",{bubbles:!0,composed:!0}))}),i.appendChild(p),o.appendChild(i);let m=e.createElement("div");m.className="tab-bar",m.setAttribute("role","tablist"),m.setAttribute("aria-label","SLICC overlay tabs");for(let{id:f,label:Q}of H){let c=e.createElement("button");c.type="button",c.className="tab-bar__tab"+(f===n?" tab-bar__tab--active":""),c.setAttribute("role","tab"),c.setAttribute("aria-selected",String(f===n)),c.dataset.tab=f,c.textContent=Q,this.tabButtons.set(f,c),c.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("slicc-overlay-select-tab",{bubbles:!0,composed:!0,detail:{tab:f}}))}),m.appendChild(c)}o.appendChild(m);let y=e.createElement("div");y.className="viewport";let x=e.createElement("iframe");x.title="SLICC electron float",this.iframe=x,x.addEventListener("load",()=>{this.frameLoaded=!0,this.postActiveTab()}),y.appendChild(x);let S=e.createElement("div");S.className="empty-state",S.textContent="Starting the local SLICC runtime\u2026",this.emptyState=S,y.appendChild(S),o.appendChild(y),t.appendChild(o),this.iframe?.addEventListener("load",()=>{this.frameLoaded=!0,this.postActiveTab()})}sync(){let t=l(this.getAttribute("active-tab")),e=this.getAttribute("app-url")?.trim()??v;for(let[n,a]of this.tabButtons){let o=n===t;a.classList.toggle("tab-bar__tab--active",o),a.setAttribute("aria-selected",String(o))}this.emptyState?.toggleAttribute("hidden",!!e),this.syncFrameUrl(e,t),this.postActiveTab()}syncFrameUrl(t,e){if(this.iframe){if(!t){this.currentAppUrl&&(this.currentAppUrl=v,this.frameLoaded=!1,this.lastPostedTab=null,this.iframe.removeAttribute("src"));return}t!==this.currentAppUrl&&(this.currentAppUrl=t,this.frameLoaded=!1,this.lastPostedTab=null,this.iframe.src=it(t,e))}}postActiveTab(){if(!this.frameLoaded||!this.iframe?.contentWindow)return;let t=l(this.getAttribute("active-tab"));this.lastPostedTab!==t&&(this.iframe.contentWindow.postMessage({type:F,tab:t},"*"),this.lastPostedTab=t)}},A=class extends HTMLElement{static observedAttributes=["open","active-tab","app-url","corner"];state=T();appUrlValue=v;syncingAttributes=!1;connectedCallback(){this.state=T({open:this.hasAttribute("open"),activeTab:l(this.getAttribute("active-tab")),corner:b(this.getAttribute("corner")??M(this.ownerDocument.defaultView))}),this.appUrlValue=this.getAttribute("app-url")?.trim()??v,this.shadowRoot||this.render(),this.syncChildren(),N(this.ownerDocument.defaultView,this.state.corner),this.ownerDocument.addEventListener("keydown",this.onKeyDown,!0)}disconnectedCallback(){this.ownerDocument.removeEventListener("keydown",this.onKeyDown,!0)}attributeChangedCallback(){this.syncingAttributes||(this.state=T({open:this.hasAttribute("open"),activeTab:l(this.getAttribute("active-tab")),corner:b(this.getAttribute("corner")??M(this.ownerDocument.defaultView))}),this.appUrlValue=this.getAttribute("app-url")?.trim()??v,this.syncChildren(),N(this.ownerDocument.defaultView,this.state.corner))}get open(){return this.state.open}set open(t){this.applyState(_(this.state,t))}get activeTab(){return this.state.activeTab}set activeTab(t){this.applyState(w(this.state,t))}get corner(){return this.state.corner}set corner(t){this.applyState(I(this.state,t))}get appUrl(){return this.appUrlValue}set appUrl(t){let e=t.trim();e!==this.appUrlValue&&(this.appUrlValue=e,this.syncingAttributes=!0,e?this.setAttribute("app-url",e):this.removeAttribute("app-url"),this.syncingAttributes=!1,this.syncChildren())}toggle(){this.applyState(z(this.state))}showSidebar(){this.applyState(_(this.state,!0))}hideSidebar(){this.applyState(_(this.state,!1))}applyState(t){t.open===this.state.open&&t.activeTab===this.state.activeTab&&t.corner===this.state.corner||(this.state=t,this.syncingAttributes=!0,this.toggleAttribute("open",t.open),this.setAttribute("active-tab",t.activeTab),this.setAttribute("corner",t.corner),this.syncingAttributes=!1,this.syncChildren(),N(this.ownerDocument.defaultView,this.state.corner))}onKeyDown=t=>{t.key!=="Escape"||!this.state.open||this.hideSidebar()};render(){let t=this.attachShadow({mode:"open"}),e=this.ownerDocument;t.appendChild(X(e,`
129
- ${D}
258
+ `));let n=e.createElement("div");n.className="backdrop",n.setAttribute("part","backdrop"),n.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("slicc-overlay-close",{bubbles:!0,composed:!0}))}),t.appendChild(n);let a=e.createElement("aside");a.className="sidebar",a.setAttribute("part","sidebar"),a.setAttribute("aria-label","SLICC overlay sidebar");let i=e.createElement("header");i.className="header";let s=e.createElement("div");s.className="header__brand";let d=e.createElement("div"),l=e.createElement("div");l.className="header__title",l.textContent="slicc";let c=e.createElement("div");c.className="header__subtitle",c.textContent="electron float",d.appendChild(l),d.appendChild(c),s.appendChild(d),i.appendChild(s);let p=e.createElement("button");p.type="button",p.className="header__close",p.setAttribute("aria-label","Close SLICC overlay"),p.textContent="\xD7",p.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("slicc-overlay-close",{bubbles:!0,composed:!0}))}),i.appendChild(p),a.appendChild(i);let b=e.createElement("div");b.className="tab-bar",b.setAttribute("role","tablist"),b.setAttribute("aria-label","SLICC overlay tabs");for(let{id:g,label:S}of Z){let h=e.createElement("button");h.type="button",h.className="tab-bar__tab"+(g===o?" tab-bar__tab--active":""),h.setAttribute("role","tab"),h.setAttribute("aria-selected",String(g===o)),h.dataset.tab=g,h.textContent=S,this.tabButtons.set(g,h),h.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("slicc-overlay-select-tab",{bubbles:!0,composed:!0,detail:{tab:g}}))}),b.appendChild(h)}a.appendChild(b);let E=e.createElement("div");E.className="viewport";let x=e.createElement("iframe");x.title="SLICC electron float",this.iframe=x,x.addEventListener("load",()=>{this.frameLoaded=!0,this.postActiveTab()}),E.appendChild(x);let f=e.createElement("div");f.className="empty-state",f.textContent="Starting the local SLICC runtime\u2026",this.emptyState=f,E.appendChild(f),a.appendChild(E),t.appendChild(a),this.iframe?.addEventListener("load",()=>{this.frameLoaded=!0,this.postActiveTab()})}sync(){let t=u(this.getAttribute("active-tab")),e=this.getAttribute("app-url")?.trim()??v;for(let[o,n]of this.tabButtons){let a=o===t;n.classList.toggle("tab-bar__tab--active",a),n.setAttribute("aria-selected",String(a))}this.emptyState?.toggleAttribute("hidden",!!e),this.syncFrameUrl(e,t),this.postActiveTab()}syncFrameUrl(t,e){if(this.iframe){if(!t){this.currentAppUrl&&(this.currentAppUrl=v,this.frameLoaded=!1,this.lastPostedTab=null,this.iframe.removeAttribute("src"));return}t!==this.currentAppUrl&&(this.currentAppUrl=t,this.frameLoaded=!1,this.lastPostedTab=null,this.iframe.src=dt(t,e))}}postActiveTab(){if(!this.frameLoaded||!this.iframe?.contentWindow)return;let t=u(this.getAttribute("active-tab"));this.lastPostedTab!==t&&(this.iframe.contentWindow.postMessage({type:F,tab:t},"*"),this.lastPostedTab=t)}},w=class extends HTMLElement{static observedAttributes=["open","active-tab","app-url","corner"];state=_();appUrlValue=v;syncingAttributes=!1;connectedCallback(){this.state=_({open:this.hasAttribute("open"),activeTab:u(this.getAttribute("active-tab")),corner:m(this.getAttribute("corner")??X(this.ownerDocument.defaultView))}),this.appUrlValue=this.getAttribute("app-url")?.trim()??v,this.shadowRoot||this.render(),this.syncChildren(),M(this.ownerDocument.defaultView,this.state.corner),this.ownerDocument.addEventListener("keydown",this.onKeyDown,!0)}disconnectedCallback(){this.ownerDocument.removeEventListener("keydown",this.onKeyDown,!0)}attributeChangedCallback(){this.syncingAttributes||(this.state=_({open:this.hasAttribute("open"),activeTab:u(this.getAttribute("active-tab")),corner:m(this.getAttribute("corner")??X(this.ownerDocument.defaultView))}),this.appUrlValue=this.getAttribute("app-url")?.trim()??v,this.syncChildren(),M(this.ownerDocument.defaultView,this.state.corner))}get open(){return this.state.open}set open(t){this.applyState(L(this.state,t))}get activeTab(){return this.state.activeTab}set activeTab(t){this.applyState(k(this.state,t))}get corner(){return this.state.corner}set corner(t){this.applyState(R(this.state,t))}get appUrl(){return this.appUrlValue}set appUrl(t){let e=t.trim();e!==this.appUrlValue&&(this.appUrlValue=e,this.syncingAttributes=!0,e?this.setAttribute("app-url",e):this.removeAttribute("app-url"),this.syncingAttributes=!1,this.syncChildren())}toggle(){this.applyState(j(this.state))}showSidebar(){this.applyState(L(this.state,!0))}hideSidebar(){this.applyState(L(this.state,!1))}applyState(t){t.open===this.state.open&&t.activeTab===this.state.activeTab&&t.corner===this.state.corner||(this.state=t,this.syncingAttributes=!0,this.toggleAttribute("open",t.open),this.setAttribute("active-tab",t.activeTab),this.setAttribute("corner",t.corner),this.syncingAttributes=!1,this.syncChildren(),M(this.ownerDocument.defaultView,this.state.corner))}onKeyDown=t=>{t.key!=="Escape"||!this.state.open||this.hideSidebar()};render(){let t=this.attachShadow({mode:"open"}),e=this.ownerDocument;t.appendChild(D(e,`
259
+ ${B}
130
260
  :host {
131
261
  all: initial;
132
262
  position: fixed;
@@ -136,4 +266,4 @@
136
266
  z-index: 2147483647;
137
267
  contain: layout style paint;
138
268
  }
139
- `));let n=e.createElement(L);n.addEventListener("slicc-overlay-toggle",()=>this.toggle()),n.addEventListener("slicc-overlay-move",o=>{let i=o.detail?.corner;this.applyState(I(this.state,i))}),t.appendChild(n);let a=e.createElement(O);a.addEventListener("slicc-overlay-close",()=>this.hideSidebar()),a.addEventListener("slicc-overlay-select-tab",o=>{let i=o.detail?.tab;this.applyState(w(this.state,i))}),t.appendChild(a)}syncChildren(){let t=this.shadowRoot;if(!t)return;let e=t.querySelector(L),n=t.querySelector(O);!e||!n||(e.toggleAttribute("open",this.state.open),e.setAttribute("corner",this.state.corner),n.toggleAttribute("open",this.state.open),n.setAttribute("active-tab",this.state.activeTab),this.appUrlValue?n.setAttribute("app-url",this.appUrlValue):n.removeAttribute("app-url"))}};function st(r=customElements){r.get(L)||r.define(L,P),r.get(O)||r.define(O,Y),r.get(U)||r.define(U,A)}function q(r=document,t={}){st(r.defaultView?.customElements??customElements);let e=r.getElementById(k),n;return e instanceof A?n=e:(e?.remove(),n=r.createElement(U)),n.id=k,n.isConnected||(r.body??r.documentElement).appendChild(n),typeof t.open=="boolean"&&(n.open=t.open),t.activeTab!==void 0&&(n.activeTab=l(t.activeTab)),t.appUrl!==void 0&&(n.appUrl=t.appUrl??v),t.corner!==void 0&&(n.corner=t.corner??M(r.defaultView)),n}function J(r=document){r.getElementById(k)?.remove()}function M(r){try{return b(r?.sessionStorage.getItem(G))}catch{return b(null)}}function N(r,t){try{r?.sessionStorage.setItem(G,t)}catch{}}function W(r,t,e){return Math.min(Math.max(r,t),e)}window.__SLICC_ELECTRON_OVERLAY__={inject(r={}){try{q(document,r)}catch(t){console.error("[slicc-overlay] Injection failed:",t)}},remove(){try{J(document)}catch(r){console.error("[slicc-overlay] Removal failed:",r)}}};})();
269
+ `));let o=e.createElement(T);o.addEventListener("slicc-overlay-toggle",()=>this.toggle()),o.addEventListener("slicc-overlay-move",a=>{let i=a.detail?.corner;this.applyState(R(this.state,i))}),t.appendChild(o);let n=e.createElement(O);n.addEventListener("slicc-overlay-close",()=>this.hideSidebar()),n.addEventListener("slicc-overlay-select-tab",a=>{let i=a.detail?.tab;this.applyState(k(this.state,i))}),t.appendChild(n)}syncChildren(){let t=this.shadowRoot;if(!t)return;let e=t.querySelector(T),o=t.querySelector(O);!e||!o||(e.toggleAttribute("open",this.state.open),e.setAttribute("corner",this.state.corner),o.toggleAttribute("open",this.state.open),o.setAttribute("corner",this.state.corner),o.setAttribute("active-tab",this.state.activeTab),this.appUrlValue?o.setAttribute("app-url",this.appUrlValue):o.removeAttribute("app-url"))}};function pt(r=customElements){r.get(T)||r.define(T,Y),r.get(O)||r.define(O,U),r.get(P)||r.define(P,w)}function Q(r=document,t={}){pt(r.defaultView?.customElements??customElements);let e=r.getElementById(N),o;return e instanceof w?o=e:(e?.remove(),o=r.createElement(P)),o.id=N,o.isConnected||(r.body??r.documentElement).appendChild(o),typeof t.open=="boolean"&&(o.open=t.open),t.activeTab!==void 0&&(o.activeTab=u(t.activeTab)),t.appUrl!==void 0&&(o.appUrl=t.appUrl??v),t.corner!==void 0&&(o.corner=t.corner??X(r.defaultView)),o}function tt(r=document){r.getElementById(N)?.remove()}function X(r){try{return m(r?.localStorage.getItem(J))}catch{return m(null)}}function M(r,t){try{r?.localStorage.setItem(J,t)}catch{}}function q(r,t,e){return Math.min(Math.max(r,t),e)}window.__SLICC_ELECTRON_OVERLAY__={inject(r={}){try{Q(document,r)}catch(t){console.error("[slicc-overlay] Injection failed:",t)}},remove(){try{tt(document)}catch(r){console.error("[slicc-overlay] Removal failed:",r)}}};})();
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>slicc</title>
7
- <link rel="icon" type="image/png" href="/favicon.png" />
8
- <script type="module" crossorigin src="/assets/index-CL0Bwyen.js"></script>
7
+ <link rel="icon" type="image/png" href="/logos/sliccy-color-1scoops-32x32.png" />
8
+ <script type="module" crossorigin src="/assets/index-BwyPKnK5.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-D2mLc9tI.css">
10
10
  </head>
11
11
  <body>
@@ -0,0 +1,32 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576.75 887.3">
3
+ <g id="Cone">
4
+ <path id="Cone_Bottom" data-name="Cone Bottom" d="M108.22,414.88l189.84,460.03c1.36,3.3,6.09,3.16,7.25-.22l159.34-463.34c.87-2.53-1.03-5.16-3.7-5.13l-349.18,3.32c-2.74.03-4.59,2.82-3.55,5.35Z" style="fill: #fff; stroke: #000; stroke-linejoin: round; stroke-width: 20px;"/>
5
+ <g id="Waffle_Cross-Hatch" data-name="Waffle Cross-Hatch">
6
+ <path d="M261.93,482.48h0c15.03-15.03,4.46-40.72-16.79-40.83h0c-21.37-.11-32.14,25.72-17.03,40.83h0c9.34,9.34,24.48,9.34,33.82,0Z"/>
7
+ <path d="M384.85,527.49l-51.82,51.82c-2.24,2.24-2.24,5.86,0,8.1l55.71,55.71c2.24,2.24,5.86,2.24,8.1,0h0c.62-.62,1.08-1.36,1.37-2.19l26.52-77.11c.71-2.07.18-4.36-1.37-5.91l-30.41-30.41c-2.24-2.24-5.86-2.24-8.1,0Z"/>
8
+ <rect x="274.59" y="463.59" width="84.73" height="95.66" rx="42.36" ry="42.36" transform="translate(-268.79 373.91) rotate(-45)"/>
9
+ <rect x="291.06" y="603.84" width="72.24" height="90.24" rx="36.12" ry="36.12" transform="translate(-363.06 421.43) rotate(-45)"/>
10
+ <path d="M371.7,684.58l-25.94,25.94c-2.24,2.24-2.24,5.86,0,8.1l12.67,12.67c2.99,2.99,8.09,1.82,9.46-2.19l13.28-38.61c1.97-5.74-5.17-10.2-9.46-5.91Z"/>
11
+ <path d="M159.42,564.14l2.73,6.83c1.52,3.82,6.46,4.83,9.37,1.93l2.05-2.05c2.24-2.24,2.24-5.86,0-8.1l-4.78-4.78c-4.4-4.4-11.67.39-9.37,6.17Z"/>
12
+ <path d="M243.92,633.11l-48.65-48.65c-5.24-5.24-13.74-5.24-18.99,0h0c-3.8,3.8-4.97,9.49-2.98,14.47l27.77,69.54c3.58,8.95,15.14,11.33,21.96,4.51l20.89-20.89c5.24-5.24,5.24-13.74,0-18.99Z"/>
13
+ <path d="M211.32,533.1h0c14.11-14.11,14.11-36.98,0-51.08l-34.94-34.94c-.72-.72-.72-1.89,0-2.62h0c1.16-1.16.34-3.15-1.3-3.16l-11.23-.06c-25.62-.13-43.23,25.72-33.73,49.51l5.37,13.45c1.82,4.55,4.54,8.68,8,12.15l16.74,16.74c14.11,14.11,36.98,14.11,51.08,0Z"/>
14
+ <path d="M263.74,792.53h0c-5.69,5.69-7.45,14.23-4.46,21.71l22.5,56.36c6.92,17.34,31.68,16.74,37.75-.92l8.66-25.2c2.5-7.28.64-15.35-4.8-20.79l-31.17-31.17c-7.87-7.87-20.62-7.87-28.48,0Z"/>
15
+ <path d="M392.94,503.07l40.81-40.81c2.24-2.24,5.86-2.24,8.1,0l.06.06c2.24,2.24,2.24,5.86,0,8.1l-40.81,40.81c-2.24,2.24-2.24,5.86,0,8.1l22.48,22.48c2.99,2.99,8.09,1.82,9.46-2.19l30.71-89.32c1.27-3.71-1.47-7.57-5.39-7.59l-120.63-.6c-5.11-.03-7.69,6.16-4.08,9.77l51.18,51.18c2.24,2.24,5.86,2.24,8.1,0Z"/>
16
+ <rect x="217.18" y="527.25" width="72.24" height="95.66" rx="36.12" ry="36.12" transform="translate(-332.45 347.55) rotate(-45)"/>
17
+ <path d="M350.28,739.46h0c-9.24-9.24-24.22-9.24-33.46,0l-13.94,13.94c-9.24,9.24-9.24,24.22,0,33.46l6.81,6.81c12.37,12.37,33.42,7.5,39.1-9.04l7.13-20.75c2.94-8.55.75-18.03-5.64-24.42Z"/>
18
+ <path d="M234.18,749.12l13.2,33.06c1.52,3.82,6.46,4.83,9.37,1.93l9.93-9.93c2.24-2.24,2.24-5.86,0-8.1l-23.13-23.13c-4.4-4.4-11.67.39-9.37,6.17Z"/>
19
+ <rect x="236.26" y="661.25" width="67.04" height="90.24" rx="33.52" ry="33.52" transform="translate(-420.46 397.65) rotate(-45)"/>
20
+ </g>
21
+ <ellipse id="Cone_Top" data-name="Cone Top" cx="288.37" cy="404.38" rx="182.34" ry="67.01" style="fill: #fff; stroke: #000; stroke-miterlimit: 10; stroke-width: 20px;"/>
22
+ </g>
23
+ <path id="Scoop_Outline" data-name="Scoop Outline" d="M566.75,340.67c0-29.85-12.97-56.87-33.96-76.47,4.8-9.98,7.44-20.71,7.44-31.9,0-38.29-30.62-71.33-74.92-86.77.33-3.07.51-6.17.51-9.3,0-69.72-84.29-126.24-188.26-126.24s-188.26,56.52-188.26,126.24c0,4,.29,7.95.83,11.86-34.94,15.4-58.48,44.25-58.48,77.34,0,18.21,7.15,35.15,19.39,49.26-25.1,19.88-41.05,49.47-41.05,82.54,0,59.85,52.15,108.37,116.49,108.37,10.83,0,21.3-1.4,31.26-3.98,31.42,41.91,83.55,69.34,142.55,69.34,64.73,0,121.2-33,151.11-81.94,63.8-.57,115.34-48.85,115.34-108.34Z" style="fill: #fff; stroke: #000; stroke-miterlimit: 10; stroke-width: 20px;"/>
24
+ <g id="Right_Eye" data-name="Right Eye">
25
+ <circle id="Left_Eye_Outline" data-name="Left Eye Outline" cx="383.4" cy="216.12" r="64.78" style="fill: #fff; stroke: #000; stroke-miterlimit: 10; stroke-width: 6px;"/>
26
+ <path id="Right_Pupil" data-name="Right Pupil" d="M402.83,217.38c-.13,1.98-.7,3.97-1.76,5.81-3.71,6.43-11.93,8.63-18.36,4.92-6.43-3.71-8.63-11.93-4.92-18.36,2.32-4.02,6.4-6.38,10.7-6.69-3.8-1.78-8.03-2.8-12.51-2.8-16.37,0-29.64,13.27-29.64,29.64s13.27,29.64,29.64,29.64,29.64-13.27,29.64-29.64c0-4.48-1.02-8.72-2.81-12.53Z"/>
27
+ </g>
28
+ <g id="Left_Eye" data-name="Left Eye">
29
+ <circle id="Right_Eye_Outline" data-name="Right Eye Outline" cx="175.1" cy="250.34" r="64.78" style="fill: #fff; stroke: #000; stroke-miterlimit: 10; stroke-width: 6px;"/>
30
+ <path id="Left_Pupil" data-name="Left Pupil" d="M213.74,233.23c-.13,1.98-.7,3.97-1.76,5.81-3.71,6.43-11.93,8.63-18.36,4.92-6.43-3.71-8.63-11.93-4.92-18.36,2.32-4.02,6.4-6.38,10.7-6.69-3.8-1.78-8.03-2.8-12.51-2.8-16.37,0-29.64,13.27-29.64,29.64s13.27,29.64,29.64,29.64,29.64-13.27,29.64-29.64c0-4.48-1.02-8.72-2.81-12.53Z"/>
31
+ </g>
32
+ </svg>