memorium/_fresh/chunk-RG4ZUIOR.js
2023-08-24 00:13:09 +02:00

3 lines
5.9 KiB
JavaScript

import{T as T2}from"./chunk-ICN4RY3D.js";import{T,d}from"./chunk-YC2TUGGU.js";function v(){throw new Error("Cycle detected")}function d2(){if(h>1){h--;return}let i,t=!1;for(;e!==void 0;){let o=e;for(e=void 0,p++;o!==void 0;){let f=o.o;if(o.o=void 0,o.f&=-3,!(8&o.f)&&a(o))try{o.c()}catch(b){t||(i=b,t=!0)}o=f}}if(p=0,h--,t)throw i}var s,e,h=0,p=0,u=0;function y(i){if(s===void 0)return;let t=i.n;if(t===void 0||t.t!==s)return t={i:0,S:i,p:s.s,n:void 0,t:s,e:void 0,x:void 0,r:t},s.s!==void 0&&(s.s.n=t),s.s=t,i.n=t,32&s.f&&i.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=s.s,t.n=void 0,s.s.n=t,s.s=t),t}function n(i){this.v=i,this.i=0,this.n=void 0,this.t=void 0}n.prototype.h=function(){return!0};n.prototype.S=function(i){this.t!==i&&i.e===void 0&&(i.x=this.t,this.t!==void 0&&(this.t.e=i),this.t=i)};n.prototype.U=function(i){if(this.t!==void 0){let t=i.e,o=i.x;t!==void 0&&(t.x=o,i.e=void 0),o!==void 0&&(o.e=t,i.x=void 0),i===this.t&&(this.t=o)}};n.prototype.subscribe=function(i){let t=this;return U(function(){let o=t.value,f=32&this.f;this.f&=-33;try{i(o)}finally{this.f|=f}})};n.prototype.valueOf=function(){return this.value};n.prototype.toString=function(){return this.value+""};n.prototype.peek=function(){return this.v};Object.defineProperty(n.prototype,"value",{get(){let i=y(this);return i!==void 0&&(i.i=this.i),this.v},set(i){if(i!==this.v){p>100&&v(),this.v=i,this.i++,u++,h++;try{for(let t=this.t;t!==void 0;t=t.x)t.t.N()}finally{d2()}}}});function O(i){return new n(i)}function a(i){for(let t=i.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function S(i){for(let t=i.s;t!==void 0;t=t.n){let o=t.S.n;if(o!==void 0&&(t.r=o),t.S.n=t,t.i=-1,t.n===void 0){i.s=t;break}}}function w(i){let t,o=i.s;for(;o!==void 0;){let f=o.p;o.i===-1?(o.S.U(o),f!==void 0&&(f.n=o.n),o.n!==void 0&&(o.n.p=f)):t=o,o.S.n=o.r,o.r!==void 0&&(o.r=void 0),o=f}i.s=t}function r(i){n.call(this,void 0),this.x=i,this.s=void 0,this.g=u-1,this.f=4}(r.prototype=new n).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===u))return!0;if(this.g=u,this.f|=1,this.i>0&&!a(this))return this.f&=-2,!0;let i=s;try{S(this),s=this;let t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return s=i,w(this),this.f&=-2,!0};r.prototype.S=function(i){if(this.t===void 0){this.f|=36;for(let t=this.s;t!==void 0;t=t.n)t.S.S(t)}n.prototype.S.call(this,i)};r.prototype.U=function(i){if(this.t!==void 0&&(n.prototype.U.call(this,i),this.t===void 0)){this.f&=-33;for(let t=this.s;t!==void 0;t=t.n)t.S.U(t)}};r.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let i=this.t;i!==void 0;i=i.x)i.t.N()}};r.prototype.peek=function(){if(this.h()||v(),16&this.f)throw this.v;return this.v};Object.defineProperty(r.prototype,"value",{get(){1&this.f&&v();let i=y(this);if(this.h(),i!==void 0&&(i.i=this.i),16&this.f)throw this.v;return this.v}});function k(i){return new r(i)}function x(i){let t=i.u;if(i.u=void 0,typeof t=="function"){h++;let o=s;s=void 0;try{t()}catch(f){throw i.f&=-2,i.f|=8,l(i),f}finally{s=o,d2()}}}function l(i){for(let t=i.s;t!==void 0;t=t.n)t.S.U(t);i.x=void 0,i.s=void 0,x(i)}function g(i){if(s!==this)throw new Error("Out-of-order effect");w(this),s=i,this.f&=-2,8&this.f&&l(this),d2()}function c(i){this.x=i,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}c.prototype.c=function(){let i=this.S();try{!(8&this.f)&&this.x!==void 0&&(this.u=this.x())}finally{i()}};c.prototype.S=function(){1&this.f&&v(),this.f|=1,this.f&=-9,x(this),S(this),h++;let i=s;return s=this,g.bind(this,i)};c.prototype.N=function(){2&this.f||(this.f|=2,this.o=e,e=this)};c.prototype.d=function(){this.f|=8,1&this.f||l(this)};function U(i){let t=new c(i);try{t.c()}catch(o){throw t.d(),o}return t.d.bind(t)}function s2(n2,t){d[n2]=t.bind(null,d[n2]||(()=>{}))}var l2,c2;function _(n2){c2&&c2(),c2=n2&&n2.S()}function $({data:n2}){let t=k2(n2);t.value=n2;let i=T2(()=>{let e2=this.__v;for(;e2=e2.__;)if(e2.__c){e2.__c.__$f|=4;break}return this.__$u.c=()=>{this.base.data=i.peek()},k(()=>{let r2=t.value.value;return r2===0?0:r2===!0?"":r2||""})},[]);return i.value}$.displayName="_st";Object.defineProperties(n.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:$},props:{configurable:!0,get(){return{data:this}}},__b:{configurable:!0,value:1}});s2("__b",(n2,t)=>{if(typeof t.type=="string"){let i,e2=t.props;for(let r2 in e2){if(r2==="children")continue;let o=e2[r2];o instanceof n&&(i||(t.__np=i={}),i[r2]=o,e2[r2]=o.peek())}}n2(t)});s2("__r",(n2,t)=>{_();let i,e2=t.__c;e2&&(e2.__$f&=-2,i=e2.__$u,i===void 0&&(e2.__$u=i=function(r2){let o;return U(function(){o=this}),o.c=()=>{e2.__$f|=1,e2.setState({})},o}())),l2=e2,_(i),n2(t)});s2("__e",(n2,t,i,e2)=>{_(),l2=void 0,n2(t,i,e2)});s2("diffed",(n2,t)=>{_(),l2=void 0;let i;if(typeof t.type=="string"&&(i=t.__e)){let e2=t.__np,r2=t.props;if(e2){let o=i.U;if(o)for(let f in o){let u2=o[f];u2!==void 0&&!(f in e2)&&(u2.d(),o[f]=void 0)}else o={},i.U=o;for(let f in e2){let u2=o[f],d3=e2[f];u2===void 0?(u2=U2(i,f,d3,r2),o[f]=u2):u2.o(d3,r2)}}}n2(t)});function U2(n2,t,i,e2){let r2=t in n2&&n2.ownerSVGElement===void 0,o=O(i);return{o:(f,u2)=>{o.value=f,e2=u2},d:U(()=>{let f=o.value.value;e2[t]!==f&&(e2[t]=f,r2?n2[t]=f:f?n2.setAttribute(t,f):n2.removeAttribute(t))})}}s2("unmount",(n2,t)=>{if(typeof t.type=="string"){let i=t.__e;if(i){let e2=i.U;if(e2){i.U=void 0;for(let r2 in e2){let o=e2[r2];o&&o.d()}}}}else{let i=t.__c;if(i){let e2=i.__$u;e2&&(i.__$u=void 0,e2.d())}}n2(t)});s2("__h",(n2,t,i,e2)=>{e2<3&&(t.__$f|=2),n2(t,i,e2)});T.prototype.shouldComponentUpdate=function(n2,t){let i=this.__$u;if(!(i&&i.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(let e2 in t)return!0;for(let e2 in n2)if(e2!=="__source"&&n2[e2]!==this.props[e2])return!0;for(let e2 in this.props)if(!(e2 in n2))return!0;return!1};function k2(n2){return T2(()=>O(n2),[])}export{O,k2 as k};
//# sourceMappingURL=chunk-RG4ZUIOR.js.map