repoburg 1.3.262 → 1.3.264
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-pane/backend/dist/index.js +12 -2
- package/agent-pane/backend/dist/server.js +12 -2
- package/agent-pane/frontend/dist/assets/{index-D8AvfHKw.js → index-yoIgKvsu.js} +17 -17
- package/agent-pane/frontend/dist/index.html +1 -1
- package/daemon/dist/index.js +0 -0
- package/package.json +1 -1
- package/tabtape/extension/dist/background.js +6 -6
- package/tabtape/extension/dist/background.js.map +4 -4
- package/tabtape/extension/dist/bridge.js +2 -2
- package/tabtape/extension/dist/bridge.js.map +4 -4
- package/tabtape/extension/dist/popup.js +1 -1
- package/tabtape/extension/dist/popup.js.map +2 -2
- package/tabtape/extension/dist/recorder.js +36 -36
- package/tabtape/extension/dist/recorder.js.map +1 -1
- package/tabtape/extension/dist/state.js +1 -1
- package/tabtape/extension/dist/state.js.map +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(()=>{var tt="tabtape.state";var gt=JSON.stringify;var Ct=Object.prototype.toString,W="********",Pt=/passw(or)?d|^pwd$|^pass$/i;var J=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e;function $(e){return Pt.test(e)}var et={depth:4,items:50,string:2e3};function nt(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function Lt(e){if(e.nodeType===1){let t=e,n="<"+t.tagName.toLowerCase();t.id&&(n+="#"+t.id);let r=t.getAttribute("class")?.trim();return r&&(n+="."+r.split(/\s+/).slice(0,3).join(".")),n+">"}return e.nodeType===3?`#text "${J(e.textContent??"",60)}"`:e.nodeName}function wt(e,t=et){return F(e,0,new WeakSet,t)}function F(e,t,n,r){switch(typeof e){case"string":return J(e,r.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let o=e;if(n.has(o))return"[Circular]";try{if(nt(o))return{name:o.name,message:J(String(o.message),r.string),stack:J(String(o.stack??""),Math.min(4e3,r.string*2))};let i=o;if(typeof i.nodeType=="number"&&typeof i.nodeName=="string")return Lt(i);if(o.window===o)return"[Window]";let s=Ct.call(o).slice(8,-1);if(s==="Date"){let f=o;return Number.isNaN(f.getTime())?"Invalid Date":f.toISOString()}if(s==="RegExp")return String(o);if(s==="Promise")return"[Promise]";if(o instanceof ArrayBuffer||ArrayBuffer.isView(o))return`[${s} ${o.byteLength} bytes]`;if(t>=r.depth)return Array.isArray(o)?`[Array(${o.length})]`:`[${s}]`;if(n.add(o),Array.isArray(o)){let f=o.slice(0,r.items).map(d=>F(d,t+1,n,r));return o.length>r.items&&f.push(`\u2026 ${o.length-r.items} more`),f}if(s==="Map")return{"[[Map]]":F([...o].slice(0,r.items),t+1,n,r)};if(s==="Set")return{"[[Set]]":F([...o].slice(0,r.items),t+1,n,r)};let a={},u=Object.keys(o);for(let f of u.slice(0,r.items))try{a[f]=F(o[f],t+1,n,r)}catch{a[f]="[unreadable]"}return u.length>r.items&&(a["\u2026"]=`${u.length-r.items} more keys`),a}catch{return"[unserializable]"}}var yt=8*1024;var Dt=[et,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],V="\u2026";function Bt(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&(e.charCodeAt(n+1)&64512)===56320?(t+=4,n++):t+=3}return t}function H(e,t=!1){if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=H(e[n],t);return e}if(e&&typeof e=="object"){let n=e;for(let r of Object.keys(n)){let o=n[r];r==="[[Map]]"&&Array.isArray(o)?n[r]=o.map(i=>Array.isArray(i)&&i.length===2&&typeof i[0]=="string"?[i[0],H(i[1],t||$(i[0]))]:H(i,t)):n[r]=H(o,t||$(r))}return n}return t&&(typeof e=="string"||typeof e=="number")?W:e}function mt(e){if(e==null)return{};let t={};for(let[n,r]of Dt.entries())if(t=Ft(H(wt(e,r))),kt(t)<=yt)return bt(t,n>0);return bt($t(t),!0)}function Ft(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function bt(e,t){let n={};return Object.keys(e).length&&(n.props=e),t&&(n.truncated=!0),n}function kt(e){return Bt(gt(e)??"")}function $t(e){let t=e[V],n=typeof t=="string"&&Number.parseInt(t,10)||0,r=Object.keys(e).filter(a=>a!==V),o={},i=0;for(let a of r){o[a]=e[a];let u=r.length-i-1+n;if(kt(u?{...o,[V]:`${u} more keys`}:o)>yt){delete o[a];break}i++}let s=r.length-i+n;return s&&(o[V]=`${s} more keys`),o}var I=JSON.stringify,rt=Object.keys,z=Array.isArray,Ht=Object.getPrototypeOf,Ut=Object.prototype,Kt=Object.prototype.toString,Xt=Map.prototype.forEach,Jt=Set.prototype.forEach,Wt=Date.prototype.getTime,Vt=Date.prototype.toISOString,zt={String:String.prototype.valueOf,Number:Number.prototype.valueOf,Boolean:Boolean.prototype.valueOf,BigInt:BigInt.prototype.valueOf},Yt=ArrayBuffer.isView,qt=Number.isFinite,Gt=1024*1024,G=100,ot=32,Zt=512,Y=32*1024*1024,Qt=1024,te=4096,U=I(W),E={overflow:!0};function vt(e){return e===E}function ee(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function ne(e){return`[\u2026 ${ee(e)} not recorded]`}function re(e){return e.includes("~")||e.includes("/")?e.replace(/~/g,"~0").replace(/\//g,"~1"):e}var q=new Map;function C(e){let t=q.get(e);return t===void 0&&(t={json:I(e)+":",ptr:re(e),pw:$(e)},e.length<=64&&(q.size>=1e4&&q.clear(),q.set(e,t))),t}function _(e){return e===void 0||typeof e=="function"||typeof e=="symbol"}function K(e){let t=Ht(e);return t===Ut||t===null}function St(e,t){try{return e[t]}catch{return"[unreadable]"}}function oe(e){return e.nodeType===1?`<${String(e.tagName).toLowerCase()}${e.id?"#"+String(e.id):""}>`:e.nodeName}var P=class e{out="";truncated=!1;limit;counting;anc;sizes;reserved=0;count=0;constructor(t,n=!1,r=new Set,o){this.limit=t,this.counting=n,this.anc=r,this.sizes=o}get length(){return this.counting?this.count:this.out.length}raw(t){if(this.counting){if((this.count+=t.length)>Y)throw E;return}if(this.out.length+t.length>this.limit-this.reserved)throw E;this.out+=t}value(t,n,r){switch(typeof t){case"string":if(n)return this.raw(U);if(this.counting){if(t.length>te){if((this.count+=t.length+2)>Y)throw E;return}}else if(this.out.length+t.length+2>this.limit-this.reserved)throw E;return this.raw(I(t));case"number":return this.raw(n?U:qt(t)?""+t:"null");case"boolean":return this.raw(t?"true":"false");case"bigint":return this.raw(n?U:'"'+t+'n"');case"object":return t===null?this.raw("null"):this.object(t,n,r);default:return this.raw("null")}}object(t,n,r){if(this.anc.has(t))return this.raw('"[Circular]"');if(r>=G)return this.truncated=!0,this.raw(z(t)?`"[Array(${t.length})]"`:'"[Object]"');if(this.counting&&this.sizes){let s=this.sizes.get(t);if(s!==void 0){if((this.count+=s)>Y)throw E;return}}let o=this.out,i=this.length;this.anc.add(t);try{z(t)?this.array(t,n,r):K(t)?this.props(t,n,r):this.special(t,n,r)}catch(s){if(s===E)throw s;this.counting?this.count=i:this.out=o,this.raw('"[unreadable]"')}finally{this.anc.delete(t)}this.counting&&this.sizes&&this.count-i>=Qt&&this.sizes.set(t,this.count-i)}array(t,n,r){this.raw("[");for(let o=0,i=t.length;o<i;o++)o>0&&this.raw(","),this.value(t[o],n,r+1);this.raw("]")}props(t,n,r){this.raw("{");let o=rt(t),i=!0;for(let s=0;s<o.length;s++){let a=St(t,o[s]);if(_(a))continue;let u=C(o[s]);i?i=!1:this.raw(","),this.raw(u.json),this.value(a,n||u.pw,r+1)}this.raw("}")}special(t,n,r){let o=Kt.call(t).slice(8,-1);switch(o){case"Date":{let a;try{a=Wt.call(t)}catch{break}return this.raw(n?U:a===a?'"'+Vt.call(t)+'"':'"Invalid Date"')}case"Map":return this.map(t,n,r);case"Set":return this.set(t,n,r);case"RegExp":return this.raw(n?U:I(String(t)));case"Promise":case"WeakMap":case"WeakSet":case"WeakRef":return this.raw(`"[${o}]"`);case"String":case"Number":case"Boolean":case"BigInt":{let a;try{a=zt[o].call(t)}catch{break}return this.value(a,n,r)}}if(nt(t))return this.raw('{"name":'),this.value(String(t.name),n,r+1),this.raw(',"message":'),this.value(String(t.message),n,r+1),this.raw("}");if(t instanceof ArrayBuffer||Yt(t))return this.raw(`"[${o} ${t.byteLength} bytes]"`);let i=t;if(typeof i.nodeType=="number"&&typeof i.nodeName=="string")return this.raw(I(oe(i)));if(i.window===t)return this.raw('"[Window]"');let s=t.toJSON;if(typeof s=="function"){let a=s.call(t,"");if(a!==t)return this.value(a,n,r)}this.props(t,n,r)}map(t,n,r){this.raw('{"[[Map]]":[');let o=!0;Xt.call(t,(i,s)=>{o?o=!1:this.raw(","),this.raw("["),this.value(s,!1,r+2),this.raw(","),this.value(i,n||typeof s=="string"&&C(s).pw,r+2),this.raw("]")}),this.raw("]}")}set(t,n,r){this.raw('{"[[Set]]":[');let o=!0;Jt.call(t,i=>{o?o=!1:this.raw(","),this.value(i,n,r+2)}),this.raw("]}")}careful(t,n,r,o){let i=-1;if(!o&&(i=this.measure(t,n,r),i<=this.limit-this.reserved-this.out.length)){let s=this.out;try{return this.value(t,n,r),!1}catch{this.out=s}}if(this.descendable(t,r)){let s=this.out;try{return this.descend(t,n,r),!1}catch{this.out=s}}return i<0&&(i=this.measure(t,n,r)),this.raw(I(ne(i))),this.truncated=!0,!0}descendable(t,n){if(t===null||typeof t!="object"||n>=G||this.anc.has(t))return!1;let r=n===0?this.limit/2/ot:Zt;try{return z(t)?t.length<=r:K(t)&&rt(t).length<=r}catch{return!1}}descend(t,n,r){let o=z(t),i=[];if(o){let u=t;for(let f=0;f<u.length;f++)i.push({prefix:f?",":"",value:u[f],masked:n})}else for(let u of rt(t)){let f=St(t,u);if(_(f))continue;let d=C(u);i.push({prefix:(i.length?",":"")+d.json,value:f,masked:n||d.pw})}let s=1;for(let u of i)s+=u.prefix.length+ot;if(this.out.length+1+s>this.limit-this.reserved)throw E;let a=this.reserved;this.anc.add(t);try{this.raw(o?"[":"{"),this.reserved+=s;for(let u of i){let f=u.prefix.length+ot,d=this.out.length;this.reserved-=f,this.raw(u.prefix),this.careful(u.value,u.masked,r+1,!1)&&(this.reserved+=f-(this.out.length-d))}this.reserved-=1,this.raw(o?"]":"}")}finally{this.reserved=a,this.anc.delete(t)}}measure(t,n,r){let o=new e(1/0,!0,this.anc,this.sizes);try{o.value(t,n,r)}catch(i){if(i!==E)throw i;return Y}return o.count}};function it(e,t=Gt){let n=new P(t);try{return n.value(e,!1,0),{json:n.out,truncated:n.truncated}}catch(o){if(o!==E)throw o}let r=new P(t,!1,new Set,new Map);return r.careful(e,!1,0,!0),{json:r.out,truncated:!0}}var ie=200,se=64*1024,ae=JSON.stringify,Et=Object.keys,Tt=Array.isArray,xt=Object.prototype.hasOwnProperty,Ot={tooMany:!0};function At(e,t){let n=[];try{st(e,t,"",!1,0,n,new Set)}catch(o){if(o===Ot)return;throw o}let r=new P(se);try{r.raw("[");for(let o=0;o<n.length;o++){let i=n[o];r.raw((o?',{"path":':'{"path":')+ae(i.path)),i.deleted?r.raw(',"deleted":true}'):(r.raw(',"value":'),r.value(i.value,i.masked,i.depth),r.raw("}"))}r.raw("]")}catch(o){if(vt(o))return;throw o}return r.out}function L(e,t){if(e.length>=ie)throw Ot;e.push(t)}function st(e,t,n,r,o,i,s){if(e!==t){if(typeof e=="object"&&typeof t=="object"&&e!==null&&t!==null&&o<G){if(s.has(t))return;let a=Tt(e),u=Tt(t);if(a&&u){s.add(t),ue(e,t,n,r,o,i,s),s.delete(t);return}if(!a&&!u&&K(e)&&K(t)){s.add(t),ce(e,t,n,r,o,i,s),s.delete(t);return}}else if(typeof e=="number"&&typeof t=="number"&&e!==e&&t!==t)return;L(i,{path:n,value:t,masked:r,depth:o})}}function ue(e,t,n,r,o,i,s){let a=e.length,u=t.length,f=a<u?a:u;for(let d=0;d<f;d++){let x=e[d],w=t[d];x!==w&&st(x,w,n+"/"+d,r,o+1,i,s)}for(let d=a;d<u;d++)L(i,{path:n+"/"+d,value:t[d],masked:r,depth:o+1});for(let d=a-1;d>=u;d--)L(i,{path:n+"/"+d,deleted:!0,masked:r,depth:o+1})}function ce(e,t,n,r,o,i,s){let a=e,u=t,f=Et(u),d=0;for(let w=0;w<f.length;w++){let m=f[w],O=xt.call(a,m);O&&d++;let j=u[m],A=O?a[m]:void 0;if(j===A)continue;let D=C(m),B=n+"/"+D.ptr,T=r||D.pw;_(j)?_(A)||L(i,{path:B,deleted:!0,masked:T,depth:o+1}):_(A)?L(i,{path:B,value:j,masked:T,depth:o+1}):st(A,j,B,T,o+1,i,s)}let x=Et(a);if(d!==x.length)for(let w=0;w<x.length;w++){let m=x[w];if(xt.call(u,m)||_(a[m]))continue;let O=C(m);L(i,{path:n+"/"+O.ptr,deleted:!0,masked:r||O.pw,depth:o+1})}}var at={actions:50,windowMs:1e3,resyncMs:1e3},fe=100,Rt=100,le=1e3,de=200,ut=JSON.stringify,pe=Object.keys;function _t(e){return typeof e=="number"&&Number.isFinite(e)?String(e):typeof e=="string"?e.trim().slice(0,Rt):""}function he(e){let t=e;if(e!==null&&typeof e=="object"){try{t=e.type}catch{t=void 0}(typeof t=="number"||typeof t=="symbol"||typeof t=="bigint"||typeof t=="boolean")&&(t=String(t))}return typeof t=="string"&&t!==""?t.slice(0,le):"anonymous"}function ge(e){if(e===null||typeof e!="object")return"";let t=Object.create(null),n=!1;for(let o of pe(e)){if(o==="type")continue;let i;try{i=e[o]}catch{i="[unreadable]"}i!==void 0&&(t[o]=i,n=!0)}if(!n)return"";let r=mt(t);return r.props?',"payload":'+ut(r.props)+(r.truncated?',"payloadTruncated":true':""):""}var Z=class{api;mode="idle";emit;stores=[];names=new Set;unnamed=0;manualStores=new Map;busy=!1;deps;constructor(t,n){this.deps=t;let r=n?"early":"late";this.api={start:o=>this.guard(()=>this.start(o)),stop:()=>this.guard(()=>this.stop()),checkout:()=>this.guard(()=>this.checkout()),disable:()=>this.guard(()=>this.disable()),manual:(o,i,s)=>this.guard(()=>this.manual(o,i,s)),info:()=>{try{return{hook:r,stores:this.stores.map(o=>o.name)}}catch{return{hook:r,stores:[]}}}}}get recording(){return this.mode==="recording"}addEnhancerStore(t,n){let r=this.add(t,n);return r&&this.full(r,"init"),r}addConnection(t){return this.add(t,void 0)}connInit(t,n){t.latest=n,t.hasLatest=!0,this.mode!=="disabled"&&this.full(t,"init",void 0,{v:n})}connSend(t,n,r){n!==null&&(t.latest=r,t.hasLatest=!0,this.mode!=="disabled"&&this.action(t,n,r))}action(t,n,r){if(this.mode!=="recording"||this.busy)return;this.busy=!0;let o=!1;try{o=this.writeAction(t,n,r)}catch{t.base=void 0,t.hasBase=!1}finally{this.busy=!1}o&&this.full(t,"snapshot","interval",{v:r})}add(t,n){if(this.stores.length>=de)return;let r={name:this.unique(t),getState:n,latest:void 0,hasLatest:!1,base:void 0,hasBase:!1,written:!1,sinceFull:0,winStart:0,winCount:0,burst:!1,timer:void 0};return this.stores.push(r),r}unique(t){let n;if(t)if(!this.names.has(t))n=t;else{let r=2;for(;this.names.has(`${t}-${r}`);)r++;n=`${t}-${r}`}else do n=`store-${++this.unnamed}`;while(this.names.has(n));return this.names.add(n),n}start(t){if(typeof t=="function"){this.emit=t,this.mode="recording";for(let n of this.stores)this.reset(n),this.full(n,n.written?"snapshot":"init","start")}}stop(){this.mode==="recording"&&(this.mode="idle"),this.emit=void 0;for(let t of this.stores)this.reset(t)}disable(){this.mode="disabled",this.emit=void 0;for(let t of this.stores)this.reset(t)}checkout(){if(this.mode==="recording")for(let t of this.stores)this.full(t,"snapshot","checkout")}manual(t,n,r){if(typeof t!="string"||this.mode==="disabled")return;let o=t.trim();if(!o)return;let i=this.manualStores.get(o);if(!i){if(i=this.add(o.slice(0,Rt),void 0),!i)return;this.manualStores.set(o,i)}i.latest=r,i.hasLatest=!0,this.action(i,n,r)}reset(t){if(t.timer!==void 0){try{this.deps.clearTimeout(t.timer)}catch{}t.timer=void 0}t.burst=!1,t.winStart=0,t.winCount=0,t.sinceFull=0,t.base=void 0,t.hasBase=!1}guard(t){try{t()}catch{}}head(t,n){return'{"store":'+ut(t.name)+',"kind":"'+n+'"'}write(t,n,r){t.written=!0,this.emit?.(n,r)}writeAction(t,n,r){let o=this.deps.now(),i=ut(he(n));if((o-t.winStart>=at.windowMs||o<t.winStart)&&(t.winStart=o,t.winCount=0),++t.winCount>at.actions||t.burst)return t.burst||(t.burst=!0,t.base=void 0,t.hasBase=!1,t.timer=this.deps.setTimeout(()=>this.resync(t),at.resyncMs)),t.sinceFull++,this.write(t,this.head(t,"action")+',"action":'+i+',"burst":true}',o),!1;let s=this.head(t,"action")+',"action":'+i+ge(n),a;if(t.hasBase)try{a=At(t.base,r)}catch{a=void 0}let u=!1;if(a!==void 0)s+=',"changes":'+a,u=++t.sinceFull>=fe;else{let f=it(r);s+=',"state":'+f.json+(f.truncated?',"truncated":true':""),t.sinceFull=0}return t.base=r,t.hasBase=!0,this.write(t,s+"}",o),u}full(t,n,r,o){if(!(this.mode!=="recording"||this.busy)){this.busy=!0;try{let i;if(o)i=o.v;else if(t.getState)i=t.getState();else if(t.hasLatest)i=t.latest;else return;let s=this.deps.now(),a=it(i),u=this.head(t,n)+',"state":'+a.json;a.truncated&&(u+=',"truncated":true'),n==="snapshot"&&r&&(u+=',"reason":"'+r+'"'),t.base=i,t.hasBase=!0,t.sinceFull=0,this.write(t,u+"}",s)}catch{t.base=void 0,t.hasBase=!1}finally{this.busy=!1}}}resync(t){t.timer=void 0,t.burst&&(t.burst=!1,this.full(t,"snapshot","burst"))}};var we="__REDUX_DEVTOOLS_EXTENSION__",be="__REDUX_DEVTOOLS_EXTENSION_COMPOSE__",ye=["connect","disconnect","send","listen","open","notifyErrors"],ct=Object.defineProperty,me=Object.getOwnPropertyDescriptor,ke=Object.keys,M=Reflect.apply,Se=()=>{};function Mt(e){try{return e!==null&&typeof e=="object"?_t(e.name):""}catch{return""}}function ve(e){return typeof e=="function"||e!==null&&typeof e=="object"}function Nt(e,t){let n=e,r=Symbol.for(tt);try{let c=n[r];if(c)return c}catch{}let o=!1;try{o=n.document?.readyState==="loading"}catch{}let i=new Z(t,o),s,a,u={},f=0;function d(c){f++;try{return c()}finally{f--}}function x(){return f===0&&typeof s=="function"&&s!==N?s:void 0}function w(){return f===0&&typeof a=="function"&&a!==lt?a:void 0}function m(c){if(f!==0)return;let l;try{s&&s!==N&&(l=s[c])}catch{l=void 0}return typeof l!="function"&&(l=u[c]),typeof l=="function"&&l!==ft[c]?l:void 0}let O=new WeakSet;function j(c,l){try{if(c===null||typeof c!="object"||O.has(c))return c;let p=c,g=p.dispatch,b=p.getState;if(typeof g!="function"||typeof b!="function")return c;let k=()=>M(b,p,[]),h=i.addEnhancerStore(l,k);if(!h)return c;let y=[],R=S=>{S.done=!0;let v;try{v=k()}catch{return}i.action(h,S.action,v)};try{p.subscribe?.(()=>{let S=y[y.length-1];S&&!S.done&&R(S)})}catch{}let dt=(S,v,It)=>{if(!i.recording)return M(S,p,v);let Q={action:It,done:!1};y.push(Q);let ht;try{ht=M(S,p,v)}finally{y.pop()}return Q.done||R(Q),ht},X={...p};X.dispatch=function(...v){return dt(g,v,v[0])};let pt=p.replaceReducer;return typeof pt=="function"&&(X.replaceReducer=function(...v){return dt(pt,v,{type:"@@redux/REPLACE"})}),O.add(X),X}catch{return c}}function A(c,l){let p,g=l?x():void 0;g&&(p=d(()=>g(c)));let b=Mt(c);return k=>{let h=typeof p=="function"?p(k):k;return(...y)=>j(h(...y),b)}}function D(c){return(...l)=>{let p=w();if(p){let g=d(()=>p(c));if(typeof g=="function")return g(...l,A(c,!1))}return g=>l.reduceRight((b,k)=>k(b),A(c,!0)(g))}}function B(c){let l=m("connect"),p=l?d(()=>M(l,s,[c])):void 0,g;try{g=i.addConnection(Mt(c))}catch{g=void 0}let b=(h,y)=>{let R=p?.[h];return typeof R=="function"?M(R,p,y):void 0},k={init(...h){return g&&i.connInit(g,h[0]),b("init",h)},send(...h){return g&&i.connSend(g,h[0],h[1]),b("send",h)},subscribe(...h){return typeof p?.subscribe=="function"?b("subscribe",h):Se},unsubscribe(...h){return b("unsubscribe",h)},error(...h){return b("error",h)}};if(p&&typeof p=="object")try{for(let h of ke(p)){if(h in k)continue;let y=p[h];k[h]=typeof y=="function"?(...R)=>M(y,p,R):y}}catch{}return k}let T=c=>function(...l){let p=m(c);return p?d(()=>M(p,s,l)):void 0},ft={connect:(...c)=>B(c[0]),disconnect:T("disconnect"),send:T("send"),listen:T("listen"),open:T("open"),notifyErrors:T("notifyErrors")},N=function(l){return A(l,!0)};for(let c of ye)ct(N,c,{configurable:!0,enumerable:!0,get:()=>ft[c],set:l=>{if(s&&s!==N)try{s[c]=l;return}catch{}u[c]=l}});let lt=function(...l){return l.length===0?N():l.length===1&&typeof l[0]=="object"?D(l[0]??{}):D({})(...l)};jt(n,we,N,c=>{s=ve(c)?c:void 0}),jt(n,be,lt,c=>{a=typeof c=="function"?c:void 0});try{ct(n,r,{value:i.api,configurable:!0,enumerable:!1,writable:!1})}catch{}return i.api}function jt(e,t,n,r){try{let o=me(e,t);if(o&&!o.configurable)return;if(o){let i=o.get?o.get.call(e):o.value;i!==n&&r(i)}ct(e,t,{configurable:!0,enumerable:!1,get:()=>n,set:i=>{i!==n&&r(i)}})}catch{}}var Ee=Date.now,Te=setTimeout,xe=clearTimeout;Nt(window,{now:()=>Ee(),setTimeout:(e,t)=>Te.call(window,e,t),clearTimeout:e=>xe.call(window,e)});})();
|
|
1
|
+
"use strict";(()=>{var tt="tabtape.state";var wt=JSON.stringify;var Ct=Object.prototype.toString,W="********",Pt=/passw(or)?d|^pwd$|^pass$/i;var J=(e,t)=>e.length>t?e.slice(0,t-1)+"\u2026":e;function $(e){return Pt.test(e)}var et={depth:4,items:50,string:2e3};function nt(e){if(!e||typeof e!="object")return!1;if(e instanceof Error)return!0;let t=e;return typeof t.message=="string"&&typeof t.name=="string"&&"stack"in t}function Lt(e){if(e.nodeType===1){let t=e,n="<"+t.tagName.toLowerCase();t.id&&(n+="#"+t.id);let r=t.getAttribute("class")?.trim();return r&&(n+="."+r.split(/\s+/).slice(0,3).join(".")),n+">"}return e.nodeType===3?`#text "${J(e.textContent??"",60)}"`:e.nodeName}function gt(e,t=et){return F(e,0,new WeakSet,t)}function F(e,t,n,r){switch(typeof e){case"string":return J(e,r.string);case"number":return Number.isFinite(e)?e:String(e);case"boolean":return e;case"undefined":return"undefined";case"bigint":return`${e}n`;case"symbol":return e.toString();case"function":return`\u0192 ${e.name||"anonymous"}()`}if(e===null)return null;let o=e;if(n.has(o))return"[Circular]";try{if(nt(o))return{name:o.name,message:J(String(o.message),r.string),stack:J(String(o.stack??""),Math.min(4e3,r.string*2))};let i=o;if(typeof i.nodeType=="number"&&typeof i.nodeName=="string")return Lt(i);if(o.window===o)return"[Window]";let s=Ct.call(o).slice(8,-1);if(s==="Date"){let f=o;return Number.isNaN(f.getTime())?"Invalid Date":f.toISOString()}if(s==="RegExp")return String(o);if(s==="Promise")return"[Promise]";if(o instanceof ArrayBuffer||ArrayBuffer.isView(o))return`[${s} ${o.byteLength} bytes]`;if(t>=r.depth)return Array.isArray(o)?`[Array(${o.length})]`:`[${s}]`;if(n.add(o),Array.isArray(o)){let f=o.slice(0,r.items).map(d=>F(d,t+1,n,r));return o.length>r.items&&f.push(`\u2026 ${o.length-r.items} more`),f}if(s==="Map")return{"[[Map]]":F([...o].slice(0,r.items),t+1,n,r)};if(s==="Set")return{"[[Set]]":F([...o].slice(0,r.items),t+1,n,r)};let a={},u=Object.keys(o);for(let f of u.slice(0,r.items))try{a[f]=F(o[f],t+1,n,r)}catch{a[f]="[unreadable]"}return u.length>r.items&&(a["\u2026"]=`${u.length-r.items} more keys`),a}catch{return"[unserializable]"}}var yt=8*1024;var Dt=[et,{depth:4,items:50,string:500},{depth:4,items:20,string:200},{depth:3,items:10,string:100},{depth:2,items:10,string:50}],V="\u2026";function Bt(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<128?t+=1:r<2048?t+=2:r>=55296&&r<=56319&&(e.charCodeAt(n+1)&64512)===56320?(t+=4,n++):t+=3}return t}function H(e,t=!1){if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=H(e[n],t);return e}if(e&&typeof e=="object"){let n=e;for(let r of Object.keys(n)){let o=n[r];r==="[[Map]]"&&Array.isArray(o)?n[r]=o.map(i=>Array.isArray(i)&&i.length===2&&typeof i[0]=="string"?[i[0],H(i[1],t||$(i[0]))]:H(i,t)):n[r]=H(o,t||$(r))}return n}return t&&(typeof e=="string"||typeof e=="number")?W:e}function mt(e){if(e==null)return{};let t={};for(let[n,r]of Dt.entries())if(t=Ft(H(gt(e,r))),kt(t)<=yt)return bt(t,n>0);return bt($t(t),!0)}function Ft(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)?e:{value:e}}function bt(e,t){let n={};return Object.keys(e).length&&(n.props=e),t&&(n.truncated=!0),n}function kt(e){return Bt(wt(e)??"")}function $t(e){let t=e[V],n=typeof t=="string"&&Number.parseInt(t,10)||0,r=Object.keys(e).filter(a=>a!==V),o={},i=0;for(let a of r){o[a]=e[a];let u=r.length-i-1+n;if(kt(u?{...o,[V]:`${u} more keys`}:o)>yt){delete o[a];break}i++}let s=r.length-i+n;return s&&(o[V]=`${s} more keys`),o}var I=JSON.stringify,rt=Object.keys,z=Array.isArray,Ht=Object.getPrototypeOf,Ut=Object.prototype,Kt=Object.prototype.toString,Xt=Map.prototype.forEach,Jt=Set.prototype.forEach,Wt=Date.prototype.getTime,Vt=Date.prototype.toISOString,zt={String:String.prototype.valueOf,Number:Number.prototype.valueOf,Boolean:Boolean.prototype.valueOf,BigInt:BigInt.prototype.valueOf},Yt=ArrayBuffer.isView,qt=Number.isFinite,Gt=1024*1024,G=100,ot=32,Zt=512,Y=32*1024*1024,Qt=1024,te=4096,U=I(W),E={overflow:!0};function vt(e){return e===E}function ee(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function ne(e){return`[\u2026 ${ee(e)} not recorded]`}function re(e){return e.includes("~")||e.includes("/")?e.replace(/~/g,"~0").replace(/\//g,"~1"):e}var q=new Map;function C(e){let t=q.get(e);return t===void 0&&(t={json:I(e)+":",ptr:re(e),pw:$(e)},e.length<=64&&(q.size>=1e4&&q.clear(),q.set(e,t))),t}function _(e){return e===void 0||typeof e=="function"||typeof e=="symbol"}function K(e){let t=Ht(e);return t===Ut||t===null}function St(e,t){try{return e[t]}catch{return"[unreadable]"}}function oe(e){return e.nodeType===1?`<${String(e.tagName).toLowerCase()}${e.id?"#"+String(e.id):""}>`:e.nodeName}var P=class e{out="";truncated=!1;limit;counting;anc;sizes;reserved=0;count=0;constructor(t,n=!1,r=new Set,o){this.limit=t,this.counting=n,this.anc=r,this.sizes=o}get length(){return this.counting?this.count:this.out.length}raw(t){if(this.counting){if((this.count+=t.length)>Y)throw E;return}if(this.out.length+t.length>this.limit-this.reserved)throw E;this.out+=t}value(t,n,r){switch(typeof t){case"string":if(n)return this.raw(U);if(this.counting){if(t.length>te){if((this.count+=t.length+2)>Y)throw E;return}}else if(this.out.length+t.length+2>this.limit-this.reserved)throw E;return this.raw(I(t));case"number":return this.raw(n?U:qt(t)?""+t:"null");case"boolean":return this.raw(t?"true":"false");case"bigint":return this.raw(n?U:'"'+t+'n"');case"object":return t===null?this.raw("null"):this.object(t,n,r);default:return this.raw("null")}}object(t,n,r){if(this.anc.has(t))return this.raw('"[Circular]"');if(r>=G)return this.truncated=!0,this.raw(z(t)?`"[Array(${t.length})]"`:'"[Object]"');if(this.counting&&this.sizes){let s=this.sizes.get(t);if(s!==void 0){if((this.count+=s)>Y)throw E;return}}let o=this.out,i=this.length;this.anc.add(t);try{z(t)?this.array(t,n,r):K(t)?this.props(t,n,r):this.special(t,n,r)}catch(s){if(s===E)throw s;this.counting?this.count=i:this.out=o,this.raw('"[unreadable]"')}finally{this.anc.delete(t)}this.counting&&this.sizes&&this.count-i>=Qt&&this.sizes.set(t,this.count-i)}array(t,n,r){this.raw("[");for(let o=0,i=t.length;o<i;o++)o>0&&this.raw(","),this.value(t[o],n,r+1);this.raw("]")}props(t,n,r){this.raw("{");let o=rt(t),i=!0;for(let s=0;s<o.length;s++){let a=St(t,o[s]);if(_(a))continue;let u=C(o[s]);i?i=!1:this.raw(","),this.raw(u.json),this.value(a,n||u.pw,r+1)}this.raw("}")}special(t,n,r){let o=Kt.call(t).slice(8,-1);switch(o){case"Date":{let a;try{a=Wt.call(t)}catch{break}return this.raw(n?U:a===a?'"'+Vt.call(t)+'"':'"Invalid Date"')}case"Map":return this.map(t,n,r);case"Set":return this.set(t,n,r);case"RegExp":return this.raw(n?U:I(String(t)));case"Promise":case"WeakMap":case"WeakSet":case"WeakRef":return this.raw(`"[${o}]"`);case"String":case"Number":case"Boolean":case"BigInt":{let a;try{a=zt[o].call(t)}catch{break}return this.value(a,n,r)}}if(nt(t))return this.raw('{"name":'),this.value(String(t.name),n,r+1),this.raw(',"message":'),this.value(String(t.message),n,r+1),this.raw("}");if(t instanceof ArrayBuffer||Yt(t))return this.raw(`"[${o} ${t.byteLength} bytes]"`);let i=t;if(typeof i.nodeType=="number"&&typeof i.nodeName=="string")return this.raw(I(oe(i)));if(i.window===t)return this.raw('"[Window]"');let s=t.toJSON;if(typeof s=="function"){let a=s.call(t,"");if(a!==t)return this.value(a,n,r)}this.props(t,n,r)}map(t,n,r){this.raw('{"[[Map]]":[');let o=!0;Xt.call(t,(i,s)=>{o?o=!1:this.raw(","),this.raw("["),this.value(s,!1,r+2),this.raw(","),this.value(i,n||typeof s=="string"&&C(s).pw,r+2),this.raw("]")}),this.raw("]}")}set(t,n,r){this.raw('{"[[Set]]":[');let o=!0;Jt.call(t,i=>{o?o=!1:this.raw(","),this.value(i,n,r+2)}),this.raw("]}")}careful(t,n,r,o){let i=-1;if(!o&&(i=this.measure(t,n,r),i<=this.limit-this.reserved-this.out.length)){let s=this.out;try{return this.value(t,n,r),!1}catch{this.out=s}}if(this.descendable(t,r)){let s=this.out;try{return this.descend(t,n,r),!1}catch{this.out=s}}return i<0&&(i=this.measure(t,n,r)),this.raw(I(ne(i))),this.truncated=!0,!0}descendable(t,n){if(t===null||typeof t!="object"||n>=G||this.anc.has(t))return!1;let r=n===0?this.limit/2/ot:Zt;try{return z(t)?t.length<=r:K(t)&&rt(t).length<=r}catch{return!1}}descend(t,n,r){let o=z(t),i=[];if(o){let u=t;for(let f=0;f<u.length;f++)i.push({prefix:f?",":"",value:u[f],masked:n})}else for(let u of rt(t)){let f=St(t,u);if(_(f))continue;let d=C(u);i.push({prefix:(i.length?",":"")+d.json,value:f,masked:n||d.pw})}let s=1;for(let u of i)s+=u.prefix.length+ot;if(this.out.length+1+s>this.limit-this.reserved)throw E;let a=this.reserved;this.anc.add(t);try{this.raw(o?"[":"{"),this.reserved+=s;for(let u of i){let f=u.prefix.length+ot,d=this.out.length;this.reserved-=f,this.raw(u.prefix),this.careful(u.value,u.masked,r+1,!1)&&(this.reserved+=f-(this.out.length-d))}this.reserved-=1,this.raw(o?"]":"}")}finally{this.reserved=a,this.anc.delete(t)}}measure(t,n,r){let o=new e(1/0,!0,this.anc,this.sizes);try{o.value(t,n,r)}catch(i){if(i!==E)throw i;return Y}return o.count}};function it(e,t=Gt){let n=new P(t);try{return n.value(e,!1,0),{json:n.out,truncated:n.truncated}}catch(o){if(o!==E)throw o}let r=new P(t,!1,new Set,new Map);return r.careful(e,!1,0,!0),{json:r.out,truncated:!0}}var ie=200,se=64*1024,ae=JSON.stringify,Et=Object.keys,Tt=Array.isArray,xt=Object.prototype.hasOwnProperty,Ot={tooMany:!0};function At(e,t){let n=[];try{st(e,t,"",!1,0,n,new Set)}catch(o){if(o===Ot)return;throw o}let r=new P(se);try{r.raw("[");for(let o=0;o<n.length;o++){let i=n[o];r.raw((o?',{"path":':'{"path":')+ae(i.path)),i.deleted?r.raw(',"deleted":true}'):(r.raw(',"value":'),r.value(i.value,i.masked,i.depth),r.raw("}"))}r.raw("]")}catch(o){if(vt(o))return;throw o}return r.out}function L(e,t){if(e.length>=ie)throw Ot;e.push(t)}function st(e,t,n,r,o,i,s){if(e!==t){if(typeof e=="object"&&typeof t=="object"&&e!==null&&t!==null&&o<G){if(s.has(t))return;let a=Tt(e),u=Tt(t);if(a&&u){s.add(t),ue(e,t,n,r,o,i,s),s.delete(t);return}if(!a&&!u&&K(e)&&K(t)){s.add(t),ce(e,t,n,r,o,i,s),s.delete(t);return}}else if(typeof e=="number"&&typeof t=="number"&&e!==e&&t!==t)return;L(i,{path:n,value:t,masked:r,depth:o})}}function ue(e,t,n,r,o,i,s){let a=e.length,u=t.length,f=a<u?a:u;for(let d=0;d<f;d++){let x=e[d],g=t[d];x!==g&&st(x,g,n+"/"+d,r,o+1,i,s)}for(let d=a;d<u;d++)L(i,{path:n+"/"+d,value:t[d],masked:r,depth:o+1});for(let d=a-1;d>=u;d--)L(i,{path:n+"/"+d,deleted:!0,masked:r,depth:o+1})}function ce(e,t,n,r,o,i,s){let a=e,u=t,f=Et(u),d=0;for(let g=0;g<f.length;g++){let m=f[g],O=xt.call(a,m);O&&d++;let j=u[m],A=O?a[m]:void 0;if(j===A)continue;let D=C(m),B=n+"/"+D.ptr,T=r||D.pw;_(j)?_(A)||L(i,{path:B,deleted:!0,masked:T,depth:o+1}):_(A)?L(i,{path:B,value:j,masked:T,depth:o+1}):st(A,j,B,T,o+1,i,s)}let x=Et(a);if(d!==x.length)for(let g=0;g<x.length;g++){let m=x[g];if(xt.call(u,m)||_(a[m]))continue;let O=C(m);L(i,{path:n+"/"+O.ptr,deleted:!0,masked:r||O.pw,depth:o+1})}}var at={actions:50,windowMs:1e3,resyncMs:1e3},fe=100,Rt=100,le=1e3,de=200,ut=JSON.stringify,pe=Object.keys;function _t(e){return typeof e=="number"&&Number.isFinite(e)?String(e):typeof e=="string"?e.trim().slice(0,Rt):""}function he(e){let t=e;if(e!==null&&typeof e=="object"){try{t=e.type}catch{t=void 0}(typeof t=="number"||typeof t=="symbol"||typeof t=="bigint"||typeof t=="boolean")&&(t=String(t))}return typeof t=="string"&&t!==""?t.slice(0,le):"anonymous"}function we(e){if(e===null||typeof e!="object")return"";let t=Object.create(null),n=!1;for(let o of pe(e)){if(o==="type")continue;let i;try{i=e[o]}catch{i="[unreadable]"}i!==void 0&&(t[o]=i,n=!0)}if(!n)return"";let r=mt(t);return r.props?',"payload":'+ut(r.props)+(r.truncated?',"payloadTruncated":true':""):""}var Z=class{api;mode="idle";emit;stores=[];names=new Set;unnamed=0;manualStores=new Map;busy=!1;deps;constructor(t,n){this.deps=t;let r=n?"early":"late";this.api={start:o=>this.guard(()=>this.start(o)),stop:()=>this.guard(()=>this.stop()),checkout:()=>this.guard(()=>this.checkout()),disable:()=>this.guard(()=>this.disable()),manual:(o,i,s)=>this.guard(()=>this.manual(o,i,s)),info:()=>{try{return{hook:r,stores:this.stores.map(o=>o.name)}}catch{return{hook:r,stores:[]}}}}}get recording(){return this.mode==="recording"}addEnhancerStore(t,n){let r=this.add(t,n);return r&&this.full(r,"init"),r}addConnection(t){return this.add(t,void 0)}connInit(t,n){t.latest=n,t.hasLatest=!0,this.mode!=="disabled"&&this.full(t,"init",void 0,{v:n})}connSend(t,n,r){n!==null&&(t.latest=r,t.hasLatest=!0,this.mode!=="disabled"&&this.action(t,n,r))}action(t,n,r){if(this.mode!=="recording"||this.busy)return;this.busy=!0;let o=!1;try{o=this.writeAction(t,n,r)}catch{t.base=void 0,t.hasBase=!1}finally{this.busy=!1}o&&this.full(t,"snapshot","interval",{v:r})}add(t,n){if(this.stores.length>=de)return;let r={name:this.unique(t),getState:n,latest:void 0,hasLatest:!1,base:void 0,hasBase:!1,written:!1,sinceFull:0,winStart:0,winCount:0,burst:!1,timer:void 0};return this.stores.push(r),r}unique(t){let n;if(t)if(!this.names.has(t))n=t;else{let r=2;for(;this.names.has(`${t}-${r}`);)r++;n=`${t}-${r}`}else do n=`store-${++this.unnamed}`;while(this.names.has(n));return this.names.add(n),n}start(t){if(typeof t=="function"){this.emit=t,this.mode="recording";for(let n of this.stores)this.reset(n),this.full(n,n.written?"snapshot":"init","start")}}stop(){this.mode==="recording"&&(this.mode="idle"),this.emit=void 0;for(let t of this.stores)this.reset(t)}disable(){this.mode="disabled",this.emit=void 0;for(let t of this.stores)this.reset(t)}checkout(){if(this.mode==="recording")for(let t of this.stores)this.full(t,"snapshot","checkout")}manual(t,n,r){if(typeof t!="string"||this.mode==="disabled")return;let o=t.trim();if(!o)return;let i=this.manualStores.get(o);if(!i){if(i=this.add(o.slice(0,Rt),void 0),!i)return;this.manualStores.set(o,i)}i.latest=r,i.hasLatest=!0,this.action(i,n,r)}reset(t){if(t.timer!==void 0){try{this.deps.clearTimeout(t.timer)}catch{}t.timer=void 0}t.burst=!1,t.winStart=0,t.winCount=0,t.sinceFull=0,t.base=void 0,t.hasBase=!1}guard(t){try{t()}catch{}}head(t,n){return'{"store":'+ut(t.name)+',"kind":"'+n+'"'}write(t,n,r){t.written=!0,this.emit?.(n,r)}writeAction(t,n,r){let o=this.deps.now(),i=ut(he(n));if((o-t.winStart>=at.windowMs||o<t.winStart)&&(t.winStart=o,t.winCount=0),++t.winCount>at.actions||t.burst)return t.burst||(t.burst=!0,t.base=void 0,t.hasBase=!1,t.timer=this.deps.setTimeout(()=>this.resync(t),at.resyncMs)),t.sinceFull++,this.write(t,this.head(t,"action")+',"action":'+i+',"burst":true}',o),!1;let s=this.head(t,"action")+',"action":'+i+we(n),a;if(t.hasBase)try{a=At(t.base,r)}catch{a=void 0}let u=!1;if(a!==void 0)s+=',"changes":'+a,u=++t.sinceFull>=fe;else{let f=it(r);s+=',"state":'+f.json+(f.truncated?',"truncated":true':""),t.sinceFull=0}return t.base=r,t.hasBase=!0,this.write(t,s+"}",o),u}full(t,n,r,o){if(!(this.mode!=="recording"||this.busy)){this.busy=!0;try{let i;if(o)i=o.v;else if(t.getState)i=t.getState();else if(t.hasLatest)i=t.latest;else return;let s=this.deps.now(),a=it(i),u=this.head(t,n)+',"state":'+a.json;a.truncated&&(u+=',"truncated":true'),n==="snapshot"&&r&&(u+=',"reason":"'+r+'"'),t.base=i,t.hasBase=!0,t.sinceFull=0,this.write(t,u+"}",s)}catch{t.base=void 0,t.hasBase=!1}finally{this.busy=!1}}}resync(t){t.timer=void 0,t.burst&&(t.burst=!1,this.full(t,"snapshot","burst"))}};var ge="__REDUX_DEVTOOLS_EXTENSION__",be="__REDUX_DEVTOOLS_EXTENSION_COMPOSE__",ye=["connect","disconnect","send","listen","open","notifyErrors"],ct=Object.defineProperty,me=Object.getOwnPropertyDescriptor,ke=Object.keys,M=Reflect.apply,Se=()=>{};function Mt(e){try{return e!==null&&typeof e=="object"?_t(e.name):""}catch{return""}}function ve(e){return typeof e=="function"||e!==null&&typeof e=="object"}function Nt(e,t){let n=e,r=Symbol.for(tt);try{let c=n[r];if(c)return c}catch{}let o=!1;try{o=n.document?.readyState==="loading"}catch{}let i=new Z(t,o),s,a,u={},f=0;function d(c){f++;try{return c()}finally{f--}}function x(){return f===0&&typeof s=="function"&&s!==N?s:void 0}function g(){return f===0&&typeof a=="function"&&a!==lt?a:void 0}function m(c){if(f!==0)return;let l;try{s&&s!==N&&(l=s[c])}catch{l=void 0}return typeof l!="function"&&(l=u[c]),typeof l=="function"&&l!==ft[c]?l:void 0}let O=new WeakSet;function j(c,l){try{if(c===null||typeof c!="object"||O.has(c))return c;let p=c,w=p.dispatch,b=p.getState;if(typeof w!="function"||typeof b!="function")return c;let k=()=>M(b,p,[]),h=i.addEnhancerStore(l,k);if(!h)return c;let y=[],R=S=>{S.done=!0;let v;try{v=k()}catch{return}i.action(h,S.action,v)};try{p.subscribe?.(()=>{let S=y[y.length-1];S&&!S.done&&R(S)})}catch{}let dt=(S,v,It)=>{if(!i.recording)return M(S,p,v);let Q={action:It,done:!1};y.push(Q);let ht;try{ht=M(S,p,v)}finally{y.pop()}return Q.done||R(Q),ht},X={...p};X.dispatch=function(...v){return dt(w,v,v[0])};let pt=p.replaceReducer;return typeof pt=="function"&&(X.replaceReducer=function(...v){return dt(pt,v,{type:"@@redux/REPLACE"})}),O.add(X),X}catch{return c}}function A(c,l){let p,w=l?x():void 0;w&&(p=d(()=>w(c)));let b=Mt(c);return k=>{let h=typeof p=="function"?p(k):k;return(...y)=>j(h(...y),b)}}function D(c){return(...l)=>{let p=g();if(p){let w=d(()=>p(c));if(typeof w=="function")return w(...l,A(c,!1))}return w=>l.reduceRight((b,k)=>k(b),A(c,!0)(w))}}function B(c){let l=m("connect"),p=l?d(()=>M(l,s,[c])):void 0,w;try{w=i.addConnection(Mt(c))}catch{w=void 0}let b=(h,y)=>{let R=p?.[h];return typeof R=="function"?M(R,p,y):void 0},k={init(...h){return w&&i.connInit(w,h[0]),b("init",h)},send(...h){return w&&i.connSend(w,h[0],h[1]),b("send",h)},subscribe(...h){return typeof p?.subscribe=="function"?b("subscribe",h):Se},unsubscribe(...h){return b("unsubscribe",h)},error(...h){return b("error",h)}};if(p&&typeof p=="object")try{for(let h of ke(p)){if(h in k)continue;let y=p[h];k[h]=typeof y=="function"?(...R)=>M(y,p,R):y}}catch{}return k}let T=c=>function(...l){let p=m(c);return p?d(()=>M(p,s,l)):void 0},ft={connect:(...c)=>B(c[0]),disconnect:T("disconnect"),send:T("send"),listen:T("listen"),open:T("open"),notifyErrors:T("notifyErrors")},N=function(l){return A(l,!0)};for(let c of ye)ct(N,c,{configurable:!0,enumerable:!0,get:()=>ft[c],set:l=>{if(s&&s!==N)try{s[c]=l;return}catch{}u[c]=l}});let lt=function(...l){return l.length===0?N():l.length===1&&typeof l[0]=="object"?D(l[0]??{}):D({})(...l)};jt(n,ge,N,c=>{s=ve(c)?c:void 0}),jt(n,be,lt,c=>{a=typeof c=="function"?c:void 0});try{ct(n,r,{value:i.api,configurable:!0,enumerable:!1,writable:!1})}catch{}return i.api}function jt(e,t,n,r){try{let o=me(e,t);if(o&&!o.configurable)return;if(o){let i=o.get?o.get.call(e):o.value;i!==n&&r(i)}ct(e,t,{configurable:!0,enumerable:!1,get:()=>n,set:i=>{i!==n&&r(i)}})}catch{}}var Ee=Date.now,Te=setTimeout,xe=clearTimeout;window.top===window&&Nt(window,{now:()=>Ee(),setTimeout:(e,t)=>Te.call(window,e,t),clearTimeout:e=>xe.call(window,e)});})();
|
|
2
2
|
//# sourceMappingURL=state.js.map
|