From bddcab6550b017b3205b3bd538591da01c458a4d Mon Sep 17 00:00:00 2001 From: zhangfisher Date: Sun, 23 Jun 2024 03:07:17 +0000 Subject: [PATCH] deploy: 49620420bcfa1d478001b69c46a9888ee38b6383 --- 404.html | 2 +- 98.c517831f.async.js | 1 - 98.e03305f8.async.js | 1 + api/index.html | 2 +- core/example-captcha/index.html | 2 +- core/example-login/index.html | 2 +- core/field-dirty/index.html | 2 +- core/field-group/index.html | 2 +- core/field-related/index.html | 2 +- core/field-render/index.html | 2 +- core/field-validate/index.html | 2 +- core/field/index.html | 2 +- core/form-action/index.html | 2 +- core/form-create/index.html | 2 +- core/form-dirty/index.html | 2 +- core/form-submit/index.html | 2 +- core/form-validate/index.html | 2 +- core/history/index.html | 2 +- core/index.html | 2 +- core/install/index.html | 2 +- core/question/index.html | 2 +- core/quick-start/index.html | 2 +- index.html | 2 +- reactive/computed-async/index.html | 2 +- reactive/computed-intro/index.html | 2 +- reactive/computed-objects/index.html | 2 +- reactive/computed-options/index.html | 2 +- reactive/computed-sync/index.html | 2 +- reactive/index.html | 2 +- reactive/render/index.html | 2 +- reactive/state/index.html | 2 +- reactive/store/index.html | 2 +- reactive/watch-computed-diff/index.html | 2 +- reactive/watch-objects/index.html | 2 +- reactive/watch-use/index.html | 2 +- reactive/watch/index.html | 2 +- render/index.html | 2 +- umi.04dbc8c8.js => umi.8f85e535.js | 2 +- ~demos/:id/index.html | 2 +- ~demos/docs-core-form-action-demo-0/index.html | 2 +- ~demos/docs-core-quick-start-demo-0/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-0/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-1/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-2/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-3/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-4/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-5/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-6/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-7/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-8/index.html | 2 +- ~demos/docs-reactive-computed-async-demo-9/index.html | 2 +- ~demos/docs-reactive-computed-intro-demo-0/index.html | 2 +- ~demos/docs-reactive-computed-intro-demo-1/index.html | 2 +- ~demos/docs-reactive-computed-intro-demo-2/index.html | 2 +- ~demos/docs-reactive-computed-intro-demo-3/index.html | 2 +- ~demos/docs-reactive-computed-intro-demo-4/index.html | 2 +- ~demos/docs-reactive-computed-intro-demo-5/index.html | 2 +- ~demos/docs-reactive-computed-intro-demo-6/index.html | 2 +- ~demos/docs-reactive-computed-objects-demo-0/index.html | 2 +- ~demos/docs-reactive-computed-objects-demo-1/index.html | 2 +- ~demos/docs-reactive-computed-objects-demo-2/index.html | 2 +- ~demos/docs-reactive-computed-objects-demo-3/index.html | 2 +- ~demos/docs-reactive-computed-sync-demo-0/index.html | 2 +- ~demos/docs-reactive-render-demo-0/index.html | 2 +- ~demos/docs-reactive-render-demo-1/index.html | 2 +- ~demos/docs-reactive-render-demo-2/index.html | 2 +- ~demos/docs-reactive-state-demo-0/index.html | 2 +- ~demos/docs-reactive-state-demo-1/index.html | 2 +- ~demos/docs-reactive-state-demo-2/index.html | 2 +- ~demos/docs-reactive-watch-demo-0/index.html | 2 +- ~demos/docs-reactive-watch-demo-1/index.html | 2 +- ~demos/docs-reactive-watch-demo-2/index.html | 2 +- ~demos/docs-reactive-watch-objects-demo-0/index.html | 2 +- 73 files changed, 72 insertions(+), 72 deletions(-) delete mode 100644 98.c517831f.async.js create mode 100644 98.e03305f8.async.js rename umi.04dbc8c8.js => umi.8f85e535.js (99%) diff --git a/404.html b/404.html index e7ce799..d284fbc 100644 --- a/404.html +++ b/404.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/98.c517831f.async.js b/98.c517831f.async.js deleted file mode 100644 index 77ebb26..0000000 --- a/98.c517831f.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkspeedform_docs=self.webpackChunkspeedform_docs||[]).push([[98],{73894:function(be,I,d){"use strict";d.r(I),d.d(I,{$:function(){return C.$},ComputedObjects:function(){return De},ComputedScopeRef:function(){return w},OBJECT_PATH_DELIMITER:function(){return b},SKIP_COMPUTED:function(){return te},WatchObject:function(){return $e},WatchObjects:function(){return Me},asyncComputedObject:function(){return st},computed:function(){return fe},createAsyncComputedMutate:function(){return ie},createComputedMutate:function(){return re},createObject:function(){return C.share},createStore:function(){return St},createUseWatch:function(){return Ie},createWatch:function(){return de},getSnap:function(){return C.getSnap},getVal:function(){return E},getValueByPath:function(){return R},installComputed:function(){return se},installWatch:function(){return pe},isIncludePath:function(){return Be},isSkipComputed:function(){return Oe},markRaw:function(){return C.markRaw},setAsyncComputedObject:function(){return rt},setVal:function(){return k},skipComputed:function(){return N},watch:function(){return mt}});var w=function(t){return t.Root="root",t.Current="current",t.Parent="parent",t.Depends="depends",t.Self="self",t}({});function $(t){return(t||["ROOT"]).map(function(e){return Array.isArray(e)?e.join("."):e}).join("_")}function Ce(t,e){var n="";return e.id?n=e.id:n=$(t),n}function Ke(t){return t instanceof Error?t:new Error(t)}var b=".",te=Symbol("SKIP_COMPUTED");function Oe(t){return t[te]===!0}var xe=d(79664),O=d.n(xe);function ne(t,e,n){if(!Array.isArray(t))throw new Error("curPath must be an array");return e==="self"?t:e==="root"?[]:e==="parent"?t.slice(0,-2):e==="current"?t.slice(0,-1):typeof e=="string"?e.startsWith("./")?[].concat(O()(t.slice(0,-1)),O()(e.slice(2).split(b))):e.startsWith("../")?ne(t.slice(0,-1),e.slice(3),!0):e.startsWith("/")?(e=e.replace(/^(\/)*/,""),O()(e.split(b))):n?[].concat(O()(t.slice(0,-1)),O()(e.split(b))):O()(e.split(b)):Array.isArray(e)?e:t}function we(t,e){var n=t.get(e);if(n!==void 0)return n;var a=t.get(Number(e)||e);if(a!==void 0)return a}function je(t){return toString.call(t)==="[object Map]"}function E(t,e){if(e.length===0)return t;var n,a=t;return e.forEach(function(r){n=je(a)?we(a,r):a[r],a=n}),n}function He(t,e,n){return t.map(function(a){return E(e,ne(n,a))})}function Fe(t){return(t||[]).map(function(e){return Array.isArray(e)?e:typeof e=="string"?["/","./","../"].some(function(n){return e.startsWith(n)})?e:e.includes(b)?e.split(b):e.split("."):[]})}var ze=d(26851),Se=d.n(ze);function At(t){return _typeof(t)=="object"&&t.hasOwnProperty("__COMPUTED__")&&["async","sync"].includes(t.__COMPUTED__)&&t.hasOwnProperty("fn")&&typeof t.fn=="function"&&t.hasOwnProperty("options")&&_typeof(t.options)=="object"}function Et(t){return _typeof(t)=="object"&&["result","loading","timeout","retry","run"].every(function(e){return t.hasOwnProperty(e)})}function Be(t,e){return t.length>e.length?!1:t.every(function(n,a){return n===e[a]})}function Le(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log",n=typeof t=="function"?t():t instanceof Error?t.stack:t;try{var a;(a=console)[e].apply(a,["[@speedform/reactive] "].concat(O()(Array.isArray(n)?n:[n])))}catch(r){}}function k(t,e,n){var a=t,r=e.length-1;e.forEach(function(i,u){var s=je(a);if(u===r){s?a.set(i,n):a[i]=n;return}var o=s?we(a,i):a[i];a=o})}function N(t){return t[te]=!0,t}function R(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b,a=[];try{return typeof e=="function"&&(e=e.call(t,t)),a=Array.isArray(e)?e:typeof e=="string"?e.split(n):[],a.length>0?E(t,a):t}catch(r){return t}}function Je(t,e){function n(a,r){for(var i in a){var u=a[i];typeof e=="function"&&e({value:u,key:i,parent:a,path:r.concat(i)}),Se()(u)==="object"&&n(u,r.concat(i))}}n(t,[])}function Ye(t,e,n){var a=e==null?n:e;if(typeof a=="function")try{a=a.call(t,t)}catch(r){}return a==null?n==null?w.Root:n:a}function Ae(t,e,n){var a=n.draft,r=n.dependValues,i=n.valuePath,u=n.computedType,s=a;if(typeof t.options.onComputedDraft=="function"){var o=t.options.onComputedDraft.call(a,a,{computedType:u,valuePath:i});o!==void 0&&(s=o)}var l=i.length>=1?i.slice(0,i.length-1):[],c=Ye(a,e.scope,t.options.scope&&t.options.scope(u));try{if(c===w.Current)return R(a,l);if(c===w.Parent)return R(a,i.slice(0,i.length-2));if(c===w.Root)return s;if(c===w.Depends)return Array.isArray(r)?r.map(function(v){return typeof v=="function"?v():v}):[];if(typeof c=="string")return R(a,ne(i,c));if(Array.isArray(c))if(c.length>0&&c[0].startsWith("@")){var f=R(a,[].concat(O()(c[0].substring(1).split(b)),O()(c.slice(1))));return R(a,f)}else return R(a,c);else if(typeof c=="number"){var p=c>i.length-2?i.length-c-1:0;return R(a,i.slice(0,p))}else return a}catch(v){return a}}var Ze=d(77937),K=d.n(Ze),Qe=d(41176),x=d.n(Qe),Xe=d(79862),P=d.n(Xe),Ee=function(){function t(e,n,a,r){K()(this,t),P()(this,"options",void 0),P()(this,"_value",void 0),this.store=e,this.selfReactiveable=n,this.path=a,this.options=Object.assign({},r)}return x()(t,[{key:"id",get:function(){return this.options.id}},{key:"enable",get:function(){return this.options.enable},set:function(n){this.options.enable=n}},{key:"group",get:function(){return this.options.group}},{key:"async",get:function(){return this.options.async}},{key:"depends",get:function(){return this.options.depends}},{key:"value",get:function(){if(this._value===void 0){var n;this._value=E(this.selfReactiveable?(n=this.selfReactiveable)===null||n===void 0?void 0:n.state:this.store.state,this.path)}return this._value}},{key:"run",value:function(n){var a;return(a=this.store.reactiveable)===null||a===void 0?void 0:a.runComputed(this.id,n)}},{key:"cancel",value:function(){}}]),t}();function ke(t,e,n,a){var r=n.options.onCreateComputed;if(typeof r=="function"&&typeof e=="function"){var i=r.call(n,t,e,a);a.scope||(a.scope=w.Current),typeof i=="function"&&(e=i)}}function X(t,e,n){return Object.assign({loading:!1,timeout:0,retry:0,error:null,result:void 0,progress:0,run:t.reactiveable.markRaw(N(function(a){return t.reactiveable.runComputed(e,Object.assign({},a))})),cancel:t.reactiveable.markRaw(N(function(){console.log("cancel")}))},n)}function qe(t,e,n){var a=t.valuePath,r=t.id,i=t.desc,u=t.resultPath,s=t.getter,o=e.selfReactiveable;n.reactiveable.createComputed({onComputed:function(c){var f=c.draft,p=c.values;if(!e.enable){n.options.log("Sync computed <".concat(i,"> is disabled"),"warn");return}n.options.log("Run sync computed for : ".concat(i)),t.dependValues=p;var v=f,g=Ae(n,e,{draft:f,dependValues:p,valuePath:a,computedType:"Computed"}),h=e.initial;try{h=s.call(v,g),n.emit("computed:done",{path:a,id:r})}catch(S){n.emit("computed:error",{path:a,id:r,error:S})}o?o.setState(function(S){k(S,u,h)}):k(f,u,h)},options:e})}function re(t,e){var n=t.path,a=t.parent,r=t.value,i=r(),u=i.getter,s=i.options;ke(n,u,e,s);var o=s.selfReactiveable,l=n,c=Ce(n,s),f="".concat(c,"_").concat(n.join(b));e.options.log("Create sync computed: ".concat(f));var p={id:c,desc:f,resultPath:l,isComputedRunning:!1,dependValues:[],valuePath:n,deps:[],getter:u};qe(p,s,e),o||t.replaceValue(E(e.state,n));var v=new Ee(e,o,n,s);return e.computedObjects.set(c,v),v}var _e=d(90393),j=d.n(_e),et=d(7392),z=d.n(et),tt=d(70125),B=d.n(tt),C=d(67687),nt=d(10346);function rt(t,e,n,a,r){var i=X(t,a,r),u=E(e,n);Object.assign(u,i,r)}function at(t,e,n){var a=Object.assign({},n),r=a.max,i=r===void 0?100:r,u=a.min,s=u===void 0?0:u,o=a.value,l=o===void 0?0:o;return t(function(c){return k(c,[].concat(O()(e),["progress"]),l)}),{value:function(f){f>i&&(f=i),f0?D-M:0,timeout:G>1?G:Q,progress:0}),!he){y.next=8;break}throw new Error("Aborted");case 8:return Q>0&&(W=setTimeout(function(){Z=!0,typeof ve=="function"&&ve(),V||(clearInterval(ee),L(h,o,{loading:!1,error:"TIMEOUT",timeout:0}))},Q),G>1&&(ee=setInterval(function(){L(h,o,{timeout:G--}),G===0&&clearInterval(ee)},Q/G))),y.next=11,s.call(S,T,We);case 11:Ne=y.sent,Z||Object.assign(U,{result:Ne,error:null,timeout:0}),y.next=20;break;case 15:y.prev=15,y.t0=y.catch(3),V=y.t0,Z||Object.assign(U,{error:Ke(y.t0).message,timeout:0}),D>0&&Object.assign(U,{retry:D-M});case 20:return y.prev=20,clearTimeout(W),clearInterval(ee),(!V||M==D)&&Object.assign(U,{loading:!1}),!V&&!Z&&Object.assign(U,{error:null}),L(h,o,U),y.finish(20);case 27:if(!V){y.next=31;break}if(!(D>0&&m>0&&M is disabled"),"warn"),m.abrupt("return");case 4:if(n.options.log("Run async computed for : ".concat(u)),A=Object.assign({},e,T),!(c&&s&&n.options.debug)){m.next=9;break}return n.options.log("Reentry async computed: ".concat(u),"warn"),m.abrupt("return");case 9:return t.isComputedRunning=!0,t.dependValues=S,m.prev=11,m.next=14,it(h,t,A,n);case 14:return H=m.sent,m.abrupt("return",H);case 16:return m.prev=16,t.isComputedRunning=!1,m.finish(16);case 19:case"end":return m.stop()}},v,null,[[11,,16,19]])}));function p(v){return f.apply(this,arguments)}return p}(),options:e})}function ie(t,e){var n=t.path,a=t.parent,r=t.value,i=r(),u=i.getter,s=i.options;s.async=!0,ke(n,u,e,s);var o=s.depends,l=o===void 0?[]:o,c=s.selfReactiveable,f=n;l.length==0&&e.options.log("async computed <".concat(n.join("."),"> should specify depends"),"warn");var p=Ce(n,s),v="".concat(p,"_").concat(n.join(b));e.options.log("Create async computed: ".concat(v," (depends=").concat(l.length==0?"None":$(l),")"));var g={id:p,desc:v,resultPath:f,isComputedRunning:!1,dependValues:[],valuePath:n,deps:l,getter:u};ut(g,s,e),c||t.replaceValue(E(e.state,n));var h=new Ee(e,c,n,s);return e.computedObjects.set(p,h),h}function st(t){return Object.assign({loading:!1,timeout:0,retry:0,error:null,result:void 0,progress:0,run:(0,C.markRaw)(N(function(e){})),cancel:(0,C.markRaw)(N(function(){}))},t)}var ue=d(20649);function se(t,e){var n=t.value,a;return n.__COMPUTED__=="async"?a=ie(t,e):n.__COMPUTED__=="sync"?a=re(t,e):(0,ue.$)(n)?(t.value=function(){return{getter:n,options:{depends:[],initial:void 0,immediate:!0,enable:!0}}},a=ie(t,e)):(t.value=function(){return{getter:n,options:{initial:void 0,enable:!0}}},a=re(t,e)),a&&e.emit("computed:created",a),a}var ot=d(71698),oe=d.n(ot),ct=d(44114),J=d.n(ct),lt=d(19365),ft=d.n(lt),dt=d(72904),pt=d.n(dt),vt=d(65523),ce=d.n(vt),ht=d(7122),le=d.n(ht),yt=d(19108),Re=d.n(yt);function fe(t,e,n){if(typeof t!="function")throw new Error("computed getter must be a function");var a=[],r={async:!1,enable:!0,timeout:0,depends:[],immediate:!0};if(arguments.length==1)a=[];else if(arguments.length==2)if(Array.isArray(arguments[1]))a=arguments[1];else if(Se()(arguments[1])=="object")Object.assign(r,arguments[1]);else throw new Error("invalid arguments");else arguments.length>=3&&(a=arguments[1],Object.assign(r,arguments[2]));var i=r.async===!0||(0,ue.$)(t)||arguments.length>=2&&Array.isArray(e);r.async=i,r.depends=Fe(a);var u=function(){return{getter:t,options:r}};return u.__COMPUTED__=i?"async":"sync",u}function q(){return Math.random().toString(36).slice(2)}var gt=function(){function t(e,n){K()(this,t)}return x()(t,[{key:"state",get:function(){throw new Error("state not implemented.")}},{key:"useState",value:function(n,a){throw new Error("useState not implemented.")}},{key:"setState",value:function(n){throw new Error("setState not implemented.")}},{key:"createAsyncComputed",value:function(n){throw new Error("createAsyncComputed not implemented.")}},{key:"createComputed",value:function(n){throw new Error("createComputed not implemented.")}},{key:"runComputed",value:function(n,a){throw new Error("runComputed not implemented.")}},{key:"markRaw",value:function(n){throw new Error("makeRaw not implemented.")}}]),t}(),Pe=function(t){ce()(n,t);var e=le()(n);function n(a,r){var i,u;return K()(this,n),u=e.call(this,a,r),P()(J()(u),"_stateCtx",void 0),u._stateCtx=(0,C.sharex)(a,{stopArrDep:!1,moduleName:(i=r==null?void 0:r.id)!==null&&i!==void 0?i:q(),onRead:function(o){r!=null&&r.onRead&&r.onRead({path:o.fullKeyPath,value:o.value,parent:o.parent,replaceValue:o.replaceValue})}}),u}return x()(n,[{key:"state",get:function(){return this._stateCtx.reactive}},{key:"useState",value:function(r,i){var u=this._stateCtx.useState(),s=B()(u,2),o=s[0],l=s[1],c=typeof r=="function"?r(o):o,f=typeof i=="function"?function(p){l(function(v){i.call(v,v,p)})}:l;return[c,f]}},{key:"setState",value:function(r){this._stateCtx.setState(r)}},{key:"createAsyncComputed",value:function(r){var i=r.initial,u=r.onComputed,s=r.depends,o=r.options;return this._stateCtx.mutate({deps:function(c){return typeof s=="function"?s(c):null},fn:function(c,f){f.isFirstCall&&typeof i=="function"&&i(c,f)},task:function(){var l=z()(j()().mark(function f(p){var v,g,h,S;return j()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(v=p.draft,g=p.setState,h=p.input,S=p.extraArgs,typeof i!="function"){A.next=3;break}return A.abrupt("return",u({draft:v,setState:g,values:h,options:Object.assign({},S)}));case 3:case"end":return A.stop()}},f)}));function c(f){return l.apply(this,arguments)}return c}(),immediate:o.immediate,desc:o.id,checkDeadCycle:!1}),o.id}},{key:"createComputed",value:function(r){var i=r.onComputed,u=r.options;return this._stateCtx.mutate({fn:function(o,l){var c=l.input;typeof i=="function"&&i({draft:o,values:c})},desc:u.id,checkDeadCycle:!1}),u.id}},{key:"runComputed",value:function(r,i){var u={desc:r,extraArgs:i};this._stateCtx.runMutateTask(u)}},{key:"markRaw",value:function(r){return(0,C.markRaw)(r)}}]),n}(gt);function Te(t){return function(e,n,a){var r=Object.assign({id:q(),depends:n},a);if(!Array.isArray(r.depends)||r.depends.length==0)throw new Error("depends must be an array and not empty");var i=r.async===!0||(0,ue.$)(e);r.selfReactiveable=new Pe({value:i?X(t,r.id,{}):r.initial});var u;r.async?u={path:["value"],parent:null,value:fe(e,r.depends,r)}:u={path:["value"],parent:null,value:fe(e,r)};var s=se(u,t);return s}}var De=function(t){ce()(n,t);var e=le()(n);function n(a){var r;return K()(this,n),r=e.call(this),P()(J()(r),"_createComputed",void 0),r.store=a,r}return x()(n,[{key:"runGroup",value:function(){var a=z()(j()().mark(function i(u){return j()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.all(O()(this.values()).filter(function(l){return l.group==u}).map(function(l){return l.async,l.run()})));case 1:case"end":return o.stop()}},i,this)}));function r(i){return a.apply(this,arguments)}return r}()},{key:"enableGroup",value:function(){var a=z()(j()().mark(function i(u){var s,o,l;return j()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:s=oe()(this.values());try{for(s.s();!(o=s.n()).done;)l=o.value,l.options.enable=u}catch(p){s.e(p)}finally{s.f()}case 2:case"end":return f.stop()}},i,this)}));function r(i){return a.apply(this,arguments)}return r}()},{key:"delete",value:function(r){return ft()(pt()(n.prototype),"delete",this).call(this,r)}},{key:"create",get:function(){return this._createComputed||(this._createComputed=Te(this.store)),this._createComputed}}]),n}(Re()(Map));function Ve(t){return typeof t=="function"?t:typeof t=="string"?function(e){return $(e)==$(t.split(b))}:Array.isArray(t)?function(e){return t.map(function(n){return typeof n=="string"?n.split(b):Array.isArray(n)?n:[String(n)]}).some(function(n){return $(e)==$(n)})}:function(){return!1}}function mt(t,e,n){var a=Object.assign({depends:Ve(e),enable:!0},n),r=function(){return{listener:t,options:a}};return r.__COMPUTED__="watch",r}function de(t){return function(e,n){var a=(0,C.watch)(function(i){var u=i.triggerReasons,s=u.map(function(o){return o.keyPath});e(s)},function(){return n==null?void 0:n.map(function(i){return R(t.stateCtx.state,i)})}),r=a.unwatch;return r}}var bt=d(70079);function pe(t,e){e.options.log("install watch for <".concat(t.path.length==0?"Dynamic":t.path.join(b),">"));var n=t.value();n.options.selfPath=t.path;var a=e.watchObjects.add(n),r=n.options.context;return r?r.setState(function(i){i.value=n.options.initial}):(t.replaceValue(n.options.initial),e.stateCtx.setState(function(i){k(i,t.path,n.options.initial)}),(0,C.flush)(e.stateCtx.state)),a}function Ie(t){return function(e,n,a){(0,bt.useEffect)(function(){var r={path:["value"],parent:void 0,value:function(){var s={listener:e,options:Object.assign({depends:Ve(n),context:(0,C.sharex)({value:0}),selfPath:["value"],initial:0,enable:!0,scope:w.Depends},a)};return s}},i=pe(r,t);return function(){t.watchObjects.delete(i.id)}},[n])}}var $e=function(){function t(e,n){if(K()(this,t),P()(this,"_cache",void 0),P()(this,"_listener",void 0),P()(this,"_options",void 0),this.store=e,this._options=Object.assign({enable:!0,selfPath:[],group:void 0,context:void 0,initial:void 0},n.options),typeof this._options.depends!="function")throw new Error("watch options.depends must be a function");if(!this._options.id){var a=this._options.selfPath;this._options.id=this._options.id||this._options.context?q():$(a)}this._listener=n.listener}return x()(t,[{key:"id",get:function(){return this._options.id}},{key:"options",get:function(){return this._options}},{key:"selfPath",get:function(){return this._options.selfPath}},{key:"depends",get:function(){return this._options.depends}},{key:"enable",get:function(){return this._options.enable},set:function(n){this._options.enable=n}},{key:"cache",get:function(){return this._cache||(this._cache={}),this._cache}},{key:"value",get:function(){var n=this._options.context?this._options.context:this.store.state;return E((0,C.getSnap)(n),this.selfPath)}},{key:"getName",value:function(){return this._options.context?this.id:this.selfPath.join(b)}},{key:"reset",value:function(){this._cache={}}},{key:"run",value:function(n,a){var r=this;if(!this.enable){this.store.options.log("WatchObject <".concat(this.getName(),"> is disabled"));return}try{var i=this._listener.call(this,a,n,this);i!==void 0&&(this._options.context?this._options.context.setState(function(u){u.value=i}):this.store.setState(function(u){k(u,r.selfPath,i)}))}catch(u){}}}]),t}(),Me=function(t){ce()(n,t);var e=le()(n);function n(a){var r;return K()(this,n),r=e.call(this),P()(J()(r),"_off",void 0),P()(J()(r),"_enable",!0),r.store=a,a.on("created",r.onStateCreated.bind(J()(r))),r}return x()(n,[{key:"onStateCreated",value:function(){this.createWacher()}},{key:"enable",get:function(){return this._enable},set:function(r){this._enable=r}},{key:"createWacher",value:function(){var r=this,i=(0,C.watch)(function(s){var o=s.triggerReasons;if(r._enable){var l=o.map(function(c){return c.keyPath});l.forEach(function(c){var f=E(r.store.state,c),p=oe()(r.values()),v;try{for(p.s();!(v=p.n()).done;){var g=v.value;g.depends(c,f)&&g.run(c,f)}}catch(h){p.e(h)}finally{p.f()}})}},function(){return[r.store.state]}),u=i.unwatch;this._off=u}},{key:"reset",value:function(){this._off&&this._off(),this.createWacher()}},{key:"add",value:function(r){var i=new $e(this.store,r);return this.set(i.id,i),i}},{key:"enableGroup",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=oe()(this.values()),s;try{for(u.s();!(s=u.n()).done;){var o=s.value;o.options.group==r&&(o.options.enable=i)}}catch(l){u.e(l)}finally{u.f()}}}]),n}(Re()(Map));function Ct(t,e){var n=t.path,a=t.value,r=$(n);typeof a=="function"&&!e._replacedKeys[r]&&!Oe(a)&&(e._replacedKeys[r]=!0,a.__COMPUTED__=="watch"?pe(t,e):se(t,e))}function Ot(t){return function(e,n){var a=t.stateCtx.useState;if(e==null)return a();var r=a(),i=B()(r,2),u=i[0],s=i[1],o=e(u),l=s;return typeof n=="function"&&(l=function(f){s(function(p){n.call(p,p,f)})}),[o,l]}}function wt(t){return function(e){t.reactiveable.setState(function(n){e(n)})}}var jt=d(24222);function St(t,e){var n=Object.assign({id:q(),debug:!0,onceComputed:!1,enableComputed:!0,scope:function(){return w.Current}},e);n.log=function(){n.debug&&Le.apply(void 0,arguments)};var a=(0,jt.Z)(),r={options:n,on:a.on,off:a.off,emit:a.emit,_replacedKeys:{}};return r.computedObjects=new De(r),r.watchObjects=new Me(r),r.reactiveable=new Pe(t,{id:n.id,onRead:function(u){Ct(u,r)}}),r.state=r.reactiveable.state,r.emit("created"),r.useState=Ot(r),r.setState=wt(r),r.enableComputed=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r.options.enableComputed=i},r.watch=de(r),r.useWatch=Ie(r),r.watch=de(r),r.createComputed=Te(r),n.onceComputed&&Je(r.state),r}},43095:function(be){function I(d){var w=new Error("Cannot find module '"+d+"'");throw w.code="MODULE_NOT_FOUND",w}I.keys=function(){return[]},I.resolve=I,I.id=43095,be.exports=I}}]); diff --git a/98.e03305f8.async.js b/98.e03305f8.async.js new file mode 100644 index 0000000..82eb5bb --- /dev/null +++ b/98.e03305f8.async.js @@ -0,0 +1 @@ +(self.webpackChunkspeedform_docs=self.webpackChunkspeedform_docs||[]).push([[98],{73894:function(be,I,d){"use strict";d.r(I),d.d(I,{$:function(){return C.$},ComputedObjects:function(){return De},ComputedScopeRef:function(){return j},OBJECT_PATH_DELIMITER:function(){return b},SKIP_COMPUTED:function(){return te},WatchObject:function(){return $e},WatchObjects:function(){return Me},asyncComputedObject:function(){return st},computed:function(){return fe},createAsyncComputedMutate:function(){return ie},createComputedMutate:function(){return re},createObject:function(){return C.share},createStore:function(){return St},createUseWatch:function(){return Ie},createWatch:function(){return de},getSnap:function(){return C.getSnap},getVal:function(){return E},getValueByPath:function(){return R},installComputed:function(){return se},installWatch:function(){return pe},isIncludePath:function(){return Be},isSkipComputed:function(){return Oe},markRaw:function(){return C.markRaw},setAsyncComputedObject:function(){return rt},setVal:function(){return k},skipComputed:function(){return N},watch:function(){return mt}});var j=function(t){return t.Root="root",t.Current="current",t.Parent="parent",t.Depends="depends",t.Self="self",t}({});function $(t){return(t||["ROOT"]).map(function(e){return Array.isArray(e)?e.join("."):e}).join("_")}function Ce(t,e){var n="";return e.id?n=e.id:n=$(t),n}function Ke(t){return t instanceof Error?t:new Error(t)}var b=".",te=Symbol("SKIP_COMPUTED");function Oe(t){return t[te]===!0}var xe=d(79664),O=d.n(xe);function ne(t,e,n){if(!Array.isArray(t))throw new Error("curPath must be an array");return e==="self"?t:e==="root"?[]:e==="parent"?t.slice(0,-2):e==="current"?t.slice(0,-1):typeof e=="string"?e.startsWith("./")?[].concat(O()(t.slice(0,-1)),O()(e.slice(2).split(b))):e.startsWith("../")?ne(t.slice(0,-1),e.slice(3),!0):e.startsWith("/")?(e=e.replace(/^(\/)*/,""),O()(e.split(b))):n?[].concat(O()(t.slice(0,-1)),O()(e.split(b))):O()(e.split(b)):Array.isArray(e)?e:t}function je(t,e){var n=t.get(e);if(n!==void 0)return n;var r=t.get(Number(e)||e);if(r!==void 0)return r}function we(t){return toString.call(t)==="[object Map]"}function E(t,e){if(e.length===0)return t;var n,r=t;return e.forEach(function(a){n=we(r)?je(r,a):r[a],r=n}),n}function He(t,e,n){return t.map(function(r){return E(e,ne(n,r))})}function Fe(t){return(t||[]).map(function(e){return Array.isArray(e)?e:typeof e=="string"?["/","./","../"].some(function(n){return e.startsWith(n)})?e:e.includes(b)?e.split(b):e.split("."):[]})}var ze=d(26851),Se=d.n(ze);function At(t){return _typeof(t)=="object"&&t.hasOwnProperty("__COMPUTED__")&&["async","sync"].includes(t.__COMPUTED__)&&t.hasOwnProperty("fn")&&typeof t.fn=="function"&&t.hasOwnProperty("options")&&_typeof(t.options)=="object"}function Et(t){return _typeof(t)=="object"&&["result","loading","timeout","retry","run"].every(function(e){return t.hasOwnProperty(e)})}function Be(t,e){return t.length>e.length?!1:t.every(function(n,r){return n===e[r]})}function Le(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log",n=typeof t=="function"?t():t instanceof Error?t.stack:t;try{var r;(r=console)[e].apply(r,["[@speedform/reactive] "].concat(O()(Array.isArray(n)?n:[n])))}catch(a){}}function k(t,e,n){var r=t,a=e.length-1;e.forEach(function(i,u){var s=we(r);if(u===a){s?r.set(i,n):r[i]=n;return}var o=s?je(r,i):r[i];r=o})}function N(t){return t[te]=!0,t}function R(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:b,r=[];try{return typeof e=="function"&&(e=e.call(t,t)),r=Array.isArray(e)?e:typeof e=="string"?e.split(n):[],r.length>0?E(t,r):t}catch(a){return t}}function Je(t,e){function n(r,a){for(var i in r){var u=r[i];typeof e=="function"&&e({value:u,key:i,parent:r,path:a.concat(i)}),Se()(u)==="object"&&n(u,a.concat(i))}}n(t,[])}function Ye(t,e,n){var r=e==null?n:e;if(typeof r=="function")try{r=r.call(t,t)}catch(a){}return r==null?n==null?j.Root:n:r}function Ae(t,e,n){var r=n.draft,a=n.dependValues,i=n.valuePath,u=n.computedType,s=r;if(typeof t.options.onComputedDraft=="function"){var o=t.options.onComputedDraft.call(r,r,{computedType:u,valuePath:i});o!==void 0&&(s=o)}var l=i.length>=1?i.slice(0,i.length-1):[],c=Ye(r,e.scope,t.options.scope&&t.options.scope(u));try{if(c===j.Current)return R(r,l);if(c===j.Parent)return R(r,i.slice(0,i.length-2));if(c===j.Root)return s;if(c===j.Depends)return Array.isArray(a)?a.map(function(v){return typeof v=="function"?v():v}):[];if(typeof c=="string")return R(r,ne(i,c));if(Array.isArray(c))if(c.length>0&&c[0].startsWith("@")){var f=R(r,[].concat(O()(c[0].substring(1).split(b)),O()(c.slice(1))));return R(r,f)}else return R(r,c);else if(typeof c=="number"){var p=c>i.length-2?i.length-c-1:0;return R(r,i.slice(0,p))}else return r}catch(v){return r}}var Ze=d(77937),K=d.n(Ze),Qe=d(41176),x=d.n(Qe),Xe=d(79862),T=d.n(Xe),Ee=function(){function t(e,n,r,a){K()(this,t),T()(this,"options",void 0),T()(this,"_value",void 0),this.store=e,this.selfReactiveable=n,this.path=r,this.options=Object.assign({},a)}return x()(t,[{key:"id",get:function(){return this.options.id}},{key:"enable",get:function(){return this.options.enable},set:function(n){this.options.enable=n}},{key:"group",get:function(){return this.options.group}},{key:"async",get:function(){return this.options.async}},{key:"depends",get:function(){return this.options.depends}},{key:"value",get:function(){if(this._value===void 0){var n;this._value=E(this.selfReactiveable?(n=this.selfReactiveable)===null||n===void 0?void 0:n.state:this.store.state,this.path)}return this._value}},{key:"run",value:function(n){var r;return(r=this.store.reactiveable)===null||r===void 0?void 0:r.runComputed(this.id,n)}},{key:"cancel",value:function(){}}]),t}();function ke(t,e,n,r){var a=n.options.onCreateComputed;if(typeof a=="function"&&typeof e=="function"){var i=a.call(n,t,e,r);r.scope||(r.scope=j.Current),typeof i=="function"&&(e=i)}}function X(t,e,n){return Object.assign({loading:!1,timeout:0,retry:0,error:null,result:void 0,progress:0,run:t.reactiveable.markRaw(N(function(r){return t.reactiveable.runComputed(e,Object.assign({},r))})),cancel:t.reactiveable.markRaw(N(function(){console.log("cancel")}))},n)}function qe(t,e,n){var r=t.valuePath,a=t.id,i=t.desc,u=t.resultPath,s=t.getter,o=e.selfReactiveable;n.reactiveable.createComputed({onComputed:function(c){var f=c.draft,p=c.values;if(!e.enable){n.options.log("Sync computed <".concat(i,"> is disabled"),"warn");return}n.options.log("Run sync computed for : ".concat(i)),t.dependValues=p;var v=f,y=Ae(n,e,{draft:f,dependValues:p,valuePath:r,computedType:"Computed"}),h=e.initial;try{h=s.call(v,y),setTimeout(function(){return n.emit("computed:done",{path:r,id:a})})}catch(S){setTimeout(function(){return n.emit("computed:error",{path:r,id:a,error:S})})}o?o.setState(function(S){k(S,u,h)}):k(f,u,h)},options:e})}function re(t,e){var n=t.path,r=t.parent,a=t.value,i=a(),u=i.getter,s=i.options;ke(n,u,e,s);var o=s.selfReactiveable,l=n,c=Ce(n,s),f="".concat(c,"_").concat(n.join(b));e.options.log("Create sync computed: ".concat(f));var p={id:c,desc:f,resultPath:l,isComputedRunning:!1,dependValues:[],valuePath:n,deps:[],getter:u};qe(p,s,e),o||t.replaceValue(E(e.state,n));var v=new Ee(e,o,n,s);return e.computedObjects.set(c,v),v}var _e=d(90393),w=d.n(_e),et=d(7392),z=d.n(et),tt=d(70125),B=d.n(tt),C=d(67687),nt=d(10346);function rt(t,e,n,r,a){var i=X(t,r,a),u=E(e,n);Object.assign(u,i,a)}function at(t,e,n){var r=Object.assign({},n),a=r.max,i=a===void 0?100:a,u=r.min,s=u===void 0?0:u,o=r.value,l=o===void 0?0:o;return t(function(c){return k(c,[].concat(O()(e),["progress"]),l)}),{value:function(f){f>i&&(f=i),f0?D-M:0,timeout:G>1?G:Q,progress:0}),!he){g.next=8;break}throw new Error("Aborted");case 8:return Q>0&&(W=setTimeout(function(){Z=!0,typeof ve=="function"&&ve(),V||(clearInterval(ee),L(h,o,{loading:!1,error:"TIMEOUT",timeout:0}))},Q),G>1&&(ee=setInterval(function(){L(h,o,{timeout:G--}),G===0&&clearInterval(ee)},Q/G))),g.next=11,s.call(S,P,We);case 11:Ne=g.sent,Z||Object.assign(U,{result:Ne,error:null,timeout:0}),g.next=20;break;case 15:g.prev=15,g.t0=g.catch(3),V=g.t0,Z||Object.assign(U,{error:Ke(g.t0).message,timeout:0}),D>0&&Object.assign(U,{retry:D-M});case 20:return g.prev=20,clearTimeout(W),clearInterval(ee),(!V||M==D)&&Object.assign(U,{loading:!1}),!V&&!Z&&Object.assign(U,{error:null}),L(h,o,U),g.finish(20);case 27:if(!V){g.next=31;break}if(!(D>0&&m>0&&M is disabled"),"warn"),m.abrupt("return");case 4:if(n.options.log("Run async computed for : ".concat(u)),A=Object.assign({},e,P),!(c&&s&&n.options.debug)){m.next=9;break}return n.options.log("Reentry async computed: ".concat(u),"warn"),m.abrupt("return");case 9:return t.isComputedRunning=!0,t.dependValues=S,m.prev=11,m.next=14,it(h,t,A,n);case 14:return H=m.sent,m.abrupt("return",H);case 16:return m.prev=16,t.isComputedRunning=!1,m.finish(16);case 19:case"end":return m.stop()}},v,null,[[11,,16,19]])}));function p(v){return f.apply(this,arguments)}return p}(),options:e})}function ie(t,e){var n=t.path,r=t.parent,a=t.value,i=a(),u=i.getter,s=i.options;s.async=!0,ke(n,u,e,s);var o=s.depends,l=o===void 0?[]:o,c=s.selfReactiveable,f=n;l.length==0&&e.options.log("async computed <".concat(n.join("."),"> should specify depends"),"warn");var p=Ce(n,s),v="".concat(p,"_").concat(n.join(b));e.options.log("Create async computed: ".concat(v," (depends=").concat(l.length==0?"None":$(l),")"));var y={id:p,desc:v,resultPath:f,isComputedRunning:!1,dependValues:[],valuePath:n,deps:l,getter:u};ut(y,s,e),c||t.replaceValue(E(e.state,n));var h=new Ee(e,c,n,s);return e.computedObjects.set(p,h),h}function st(t){return Object.assign({loading:!1,timeout:0,retry:0,error:null,result:void 0,progress:0,run:(0,C.markRaw)(N(function(e){})),cancel:(0,C.markRaw)(N(function(){}))},t)}var ue=d(20649);function se(t,e){var n=t.value,r;return n.__COMPUTED__=="async"?r=ie(t,e):n.__COMPUTED__=="sync"?r=re(t,e):(0,ue.$)(n)?(t.value=function(){return{getter:n,options:{depends:[],initial:void 0,immediate:!0,enable:!0}}},r=ie(t,e)):(t.value=function(){return{getter:n,options:{initial:void 0,enable:!0}}},r=re(t,e)),r&&e.emit("computed:created",r),r}var ot=d(71698),oe=d.n(ot),ct=d(44114),J=d.n(ct),lt=d(19365),ft=d.n(lt),dt=d(72904),pt=d.n(dt),vt=d(65523),ce=d.n(vt),ht=d(7122),le=d.n(ht),gt=d(19108),Re=d.n(gt);function fe(t,e,n){if(typeof t!="function")throw new Error("computed getter must be a function");var r=[],a={async:!1,enable:!0,timeout:0,depends:[],immediate:!0};if(arguments.length==1)r=[];else if(arguments.length==2)if(Array.isArray(arguments[1]))r=arguments[1];else if(Se()(arguments[1])=="object")Object.assign(a,arguments[1]);else throw new Error("invalid arguments");else arguments.length>=3&&(r=arguments[1],Object.assign(a,arguments[2]));var i=a.async===!0||(0,ue.$)(t)||arguments.length>=2&&Array.isArray(e);a.async=i,a.depends=Fe(r);var u=function(){return{getter:t,options:a}};return u.__COMPUTED__=i?"async":"sync",u}function q(){return Math.random().toString(36).slice(2)}var yt=function(){function t(e,n){K()(this,t)}return x()(t,[{key:"state",get:function(){throw new Error("state not implemented.")}},{key:"useState",value:function(n,r){throw new Error("useState not implemented.")}},{key:"setState",value:function(n){throw new Error("setState not implemented.")}},{key:"createAsyncComputed",value:function(n){throw new Error("createAsyncComputed not implemented.")}},{key:"createComputed",value:function(n){throw new Error("createComputed not implemented.")}},{key:"runComputed",value:function(n,r){throw new Error("runComputed not implemented.")}},{key:"markRaw",value:function(n){throw new Error("makeRaw not implemented.")}}]),t}(),Te=function(t){ce()(n,t);var e=le()(n);function n(r,a){var i,u;return K()(this,n),u=e.call(this,r,a),T()(J()(u),"_stateCtx",void 0),u._stateCtx=(0,C.sharex)(r,{stopArrDep:!1,moduleName:(i=a==null?void 0:a.id)!==null&&i!==void 0?i:q(),onRead:function(o){a!=null&&a.onRead&&a.onRead({path:o.fullKeyPath,value:o.value,parent:o.parent,replaceValue:o.replaceValue})}}),u}return x()(n,[{key:"state",get:function(){return this._stateCtx.reactive}},{key:"useState",value:function(a,i){var u=this._stateCtx.useState(),s=B()(u,2),o=s[0],l=s[1],c=typeof a=="function"?a(o):o,f=typeof i=="function"?function(p){l(function(v){i.call(v,v,p)})}:l;return[c,f]}},{key:"setState",value:function(a){this._stateCtx.setState(a)}},{key:"createAsyncComputed",value:function(a){var i=a.initial,u=a.onComputed,s=a.depends,o=a.options;return this._stateCtx.mutate({deps:function(c){return typeof s=="function"?s(c):null},fn:function(c,f){f.isFirstCall&&typeof i=="function"&&i(c,f)},task:function(){var l=z()(w()().mark(function f(p){var v,y,h,S;return w()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(v=p.draft,y=p.setState,h=p.input,S=p.extraArgs,typeof i!="function"){A.next=3;break}return A.abrupt("return",u({draft:v,setState:y,values:h,options:Object.assign({},S)}));case 3:case"end":return A.stop()}},f)}));function c(f){return l.apply(this,arguments)}return c}(),immediate:o.immediate,desc:o.id,checkDeadCycle:!1}),o.id}},{key:"createComputed",value:function(a){var i=a.onComputed,u=a.options;return this._stateCtx.mutate({fn:function(o,l){var c=l.input;typeof i=="function"&&i({draft:o,values:c})},desc:u.id,checkDeadCycle:!1}),u.id}},{key:"runComputed",value:function(a,i){var u={desc:a,extraArgs:i};this._stateCtx.runMutateTask(u)}},{key:"markRaw",value:function(a){return(0,C.markRaw)(a)}}]),n}(yt);function Pe(t){function e(n,r,a){arguments.length==1||arguments.length==2;var i=Object.assign({id:q(),depends:r},a);if(!Array.isArray(i.depends)||i.depends.length==0)throw new Error("depends must be an array and not empty");var u=i.async===!0||(0,ue.$)(n);i.selfReactiveable=new Te({value:u?X(t,i.id,{}):i.initial});var s;i.async?s={path:["value"],parent:null,value:fe(n,i.depends,i)}:s={path:["value"],parent:null,value:fe(n,i)};var o=se(s,t);return o}return e}var De=function(t){ce()(n,t);var e=le()(n);function n(r){var a;return K()(this,n),a=e.call(this),T()(J()(a),"_createComputed",void 0),a.store=r,a}return x()(n,[{key:"runGroup",value:function(){var r=z()(w()().mark(function i(u){return w()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.all(O()(this.values()).filter(function(l){return l.group==u}).map(function(l){return l.async,l.run()})));case 1:case"end":return o.stop()}},i,this)}));function a(i){return r.apply(this,arguments)}return a}()},{key:"enableGroup",value:function(){var r=z()(w()().mark(function i(u){var s,o,l;return w()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:s=oe()(this.values());try{for(s.s();!(o=s.n()).done;)l=o.value,l.options.enable=u}catch(p){s.e(p)}finally{s.f()}case 2:case"end":return f.stop()}},i,this)}));function a(i){return r.apply(this,arguments)}return a}()},{key:"delete",value:function(a){return ft()(pt()(n.prototype),"delete",this).call(this,a)}},{key:"create",get:function(){return this._createComputed||(this._createComputed=Pe(this.store)),this._createComputed}}]),n}(Re()(Map));function Ve(t){return typeof t=="function"?t:typeof t=="string"?function(e){return $(e)==$(t.split(b))}:Array.isArray(t)?function(e){return t.map(function(n){return typeof n=="string"?n.split(b):Array.isArray(n)?n:[String(n)]}).some(function(n){return $(e)==$(n)})}:function(){return!1}}function mt(t,e,n){var r=Object.assign({depends:Ve(e),enable:!0},n),a=function(){return{listener:t,options:r}};return a.__COMPUTED__="watch",a}function de(t){return function(e,n){var r=(0,C.watch)(function(i){var u=i.triggerReasons,s=u.map(function(o){return o.keyPath});e(s)},function(){return n==null?void 0:n.map(function(i){return R(t.stateCtx.state,i)})}),a=r.unwatch;return a}}var bt=d(70079);function pe(t,e){e.options.log("install watch for <".concat(t.path.length==0?"Dynamic":t.path.join(b),">"));var n=t.value();n.options.selfPath=t.path;var r=e.watchObjects.add(n),a=n.options.context;return a?a.setState(function(i){i.value=n.options.initial}):(t.replaceValue(n.options.initial),e.stateCtx.setState(function(i){k(i,t.path,n.options.initial)}),(0,C.flush)(e.stateCtx.state)),r}function Ie(t){return function(e,n,r){(0,bt.useEffect)(function(){var a={path:["value"],parent:void 0,value:function(){var s={listener:e,options:Object.assign({depends:Ve(n),context:(0,C.sharex)({value:0}),selfPath:["value"],initial:0,enable:!0,scope:j.Depends},r)};return s}},i=pe(a,t);return function(){t.watchObjects.delete(i.id)}},[n])}}var $e=function(){function t(e,n){if(K()(this,t),T()(this,"_cache",void 0),T()(this,"_listener",void 0),T()(this,"_options",void 0),this.store=e,this._options=Object.assign({enable:!0,selfPath:[],group:void 0,context:void 0,initial:void 0},n.options),typeof this._options.depends!="function")throw new Error("watch options.depends must be a function");if(!this._options.id){var r=this._options.selfPath;this._options.id=this._options.id||this._options.context?q():$(r)}this._listener=n.listener}return x()(t,[{key:"id",get:function(){return this._options.id}},{key:"options",get:function(){return this._options}},{key:"selfPath",get:function(){return this._options.selfPath}},{key:"depends",get:function(){return this._options.depends}},{key:"enable",get:function(){return this._options.enable},set:function(n){this._options.enable=n}},{key:"cache",get:function(){return this._cache||(this._cache={}),this._cache}},{key:"value",get:function(){var n=this._options.context?this._options.context:this.store.state;return E((0,C.getSnap)(n),this.selfPath)}},{key:"getName",value:function(){return this._options.context?this.id:this.selfPath.join(b)}},{key:"reset",value:function(){this._cache={}}},{key:"run",value:function(n,r){var a=this;if(!this.enable){this.store.options.log("WatchObject <".concat(this.getName(),"> is disabled"));return}try{var i=this._listener.call(this,r,n,this);i!==void 0&&(this._options.context?this._options.context.setState(function(u){u.value=i}):this.store.setState(function(u){k(u,a.selfPath,i)}))}catch(u){}}}]),t}(),Me=function(t){ce()(n,t);var e=le()(n);function n(r){var a;return K()(this,n),a=e.call(this),T()(J()(a),"_off",void 0),T()(J()(a),"_enable",!0),a.store=r,r.on("created",a.onStateCreated.bind(J()(a))),a}return x()(n,[{key:"onStateCreated",value:function(){this.createWacher()}},{key:"enable",get:function(){return this._enable},set:function(a){this._enable=a}},{key:"createWacher",value:function(){var a=this,i=(0,C.watch)(function(s){var o=s.triggerReasons;if(a._enable){var l=o.map(function(c){return c.keyPath});l.forEach(function(c){var f=E(a.store.state,c),p=oe()(a.values()),v;try{for(p.s();!(v=p.n()).done;){var y=v.value;y.depends(c,f)&&y.run(c,f)}}catch(h){p.e(h)}finally{p.f()}})}},function(){return[a.store.state]}),u=i.unwatch;this._off=u}},{key:"reset",value:function(){this._off&&this._off(),this.createWacher()}},{key:"add",value:function(a){var i=new $e(this.store,a);return this.set(i.id,i),i}},{key:"enableGroup",value:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=oe()(this.values()),s;try{for(u.s();!(s=u.n()).done;){var o=s.value;o.options.group==a&&(o.options.enable=i)}}catch(l){u.e(l)}finally{u.f()}}}]),n}(Re()(Map));function Ct(t,e){var n=t.path,r=t.value,a=$(n);typeof r=="function"&&!e._replacedKeys[a]&&!Oe(r)&&(e._replacedKeys[a]=!0,r.__COMPUTED__=="watch"?pe(t,e):se(t,e))}function Ot(t){return function(e,n){var r=t.stateCtx.useState;if(e==null)return r();var a=r(),i=B()(a,2),u=i[0],s=i[1],o=e(u),l=s;return typeof n=="function"&&(l=function(f){s(function(p){n.call(p,p,f)})}),[o,l]}}function jt(t){return function(e){t.reactiveable.setState(function(n){e(n)})}}var wt=d(24222);function St(t,e){var n=Object.assign({id:q(),debug:!0,onceComputed:!1,enableComputed:!0,scope:function(){return j.Current}},e);n.log=function(){n.debug&&Le.apply(void 0,arguments)};var r=(0,wt.Z)(),a={options:n,on:r.on,off:r.off,emit:r.emit,_replacedKeys:{}};return a.computedObjects=new De(a),a.watchObjects=new Me(a),a.reactiveable=new Te(t,{id:n.id,onRead:function(u){Ct(u,a)}}),a.state=a.reactiveable.state,a.emit("created"),a.useState=Ot(a),a.setState=jt(a),a.enableComputed=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return a.options.enableComputed=i},a.watch=de(a),a.useWatch=Ie(a),a.watch=de(a),a.createComputed=Pe(a),n.onceComputed&&Je(a.state),a}},43095:function(be){function I(d){var j=new Error("Cannot find module '"+d+"'");throw j.code="MODULE_NOT_FOUND",j}I.keys=function(){return[]},I.resolve=I,I.id=43095,be.exports=I}}]); diff --git a/api/index.html b/api/index.html index e7ce799..d284fbc 100644 --- a/api/index.html +++ b/api/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/example-captcha/index.html b/core/example-captcha/index.html index e7ce799..d284fbc 100644 --- a/core/example-captcha/index.html +++ b/core/example-captcha/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/example-login/index.html b/core/example-login/index.html index e7ce799..d284fbc 100644 --- a/core/example-login/index.html +++ b/core/example-login/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-dirty/index.html b/core/field-dirty/index.html index e7ce799..d284fbc 100644 --- a/core/field-dirty/index.html +++ b/core/field-dirty/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-group/index.html b/core/field-group/index.html index e7ce799..d284fbc 100644 --- a/core/field-group/index.html +++ b/core/field-group/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-related/index.html b/core/field-related/index.html index e7ce799..d284fbc 100644 --- a/core/field-related/index.html +++ b/core/field-related/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-render/index.html b/core/field-render/index.html index e7ce799..d284fbc 100644 --- a/core/field-render/index.html +++ b/core/field-render/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field-validate/index.html b/core/field-validate/index.html index e7ce799..d284fbc 100644 --- a/core/field-validate/index.html +++ b/core/field-validate/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/field/index.html b/core/field/index.html index e7ce799..d284fbc 100644 --- a/core/field/index.html +++ b/core/field/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-action/index.html b/core/form-action/index.html index e7ce799..d284fbc 100644 --- a/core/form-action/index.html +++ b/core/form-action/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-create/index.html b/core/form-create/index.html index e7ce799..d284fbc 100644 --- a/core/form-create/index.html +++ b/core/form-create/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-dirty/index.html b/core/form-dirty/index.html index e7ce799..d284fbc 100644 --- a/core/form-dirty/index.html +++ b/core/form-dirty/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-submit/index.html b/core/form-submit/index.html index e7ce799..d284fbc 100644 --- a/core/form-submit/index.html +++ b/core/form-submit/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/form-validate/index.html b/core/form-validate/index.html index e7ce799..d284fbc 100644 --- a/core/form-validate/index.html +++ b/core/form-validate/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/history/index.html b/core/history/index.html index e7ce799..d284fbc 100644 --- a/core/history/index.html +++ b/core/history/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/index.html b/core/index.html index e7ce799..d284fbc 100644 --- a/core/index.html +++ b/core/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/install/index.html b/core/install/index.html index e7ce799..d284fbc 100644 --- a/core/install/index.html +++ b/core/install/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/question/index.html b/core/question/index.html index e7ce799..d284fbc 100644 --- a/core/question/index.html +++ b/core/question/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/quick-start/index.html b/core/quick-start/index.html index e7ce799..d284fbc 100644 --- a/core/quick-start/index.html +++ b/core/quick-start/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/index.html b/index.html index e7ce799..d284fbc 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-async/index.html b/reactive/computed-async/index.html index e7ce799..d284fbc 100644 --- a/reactive/computed-async/index.html +++ b/reactive/computed-async/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-intro/index.html b/reactive/computed-intro/index.html index e7ce799..d284fbc 100644 --- a/reactive/computed-intro/index.html +++ b/reactive/computed-intro/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-objects/index.html b/reactive/computed-objects/index.html index e7ce799..d284fbc 100644 --- a/reactive/computed-objects/index.html +++ b/reactive/computed-objects/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-options/index.html b/reactive/computed-options/index.html index e7ce799..d284fbc 100644 --- a/reactive/computed-options/index.html +++ b/reactive/computed-options/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/computed-sync/index.html b/reactive/computed-sync/index.html index e7ce799..d284fbc 100644 --- a/reactive/computed-sync/index.html +++ b/reactive/computed-sync/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/index.html b/reactive/index.html index e7ce799..d284fbc 100644 --- a/reactive/index.html +++ b/reactive/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/render/index.html b/reactive/render/index.html index e7ce799..d284fbc 100644 --- a/reactive/render/index.html +++ b/reactive/render/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/state/index.html b/reactive/state/index.html index e7ce799..d284fbc 100644 --- a/reactive/state/index.html +++ b/reactive/state/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/store/index.html b/reactive/store/index.html index e7ce799..d284fbc 100644 --- a/reactive/store/index.html +++ b/reactive/store/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/watch-computed-diff/index.html b/reactive/watch-computed-diff/index.html index e7ce799..d284fbc 100644 --- a/reactive/watch-computed-diff/index.html +++ b/reactive/watch-computed-diff/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/watch-objects/index.html b/reactive/watch-objects/index.html index e7ce799..d284fbc 100644 --- a/reactive/watch-objects/index.html +++ b/reactive/watch-objects/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/watch-use/index.html b/reactive/watch-use/index.html index e7ce799..d284fbc 100644 --- a/reactive/watch-use/index.html +++ b/reactive/watch-use/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/reactive/watch/index.html b/reactive/watch/index.html index e7ce799..d284fbc 100644 --- a/reactive/watch/index.html +++ b/reactive/watch/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/render/index.html b/render/index.html index e7ce799..d284fbc 100644 --- a/render/index.html +++ b/render/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/umi.04dbc8c8.js b/umi.8f85e535.js similarity index 99% rename from umi.04dbc8c8.js rename to umi.8f85e535.js index 44804cd..720ce69 100644 --- a/umi.04dbc8c8.js +++ b/umi.8f85e535.js @@ -2258,7 +2258,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s.exports=v,s.exports.__esModule=!0,s.exports.default=s.exports},39114:function(s,v,e){var i=e(79862);function a(l,o){var f=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);o&&(c=c.filter(function(y){return Object.getOwnPropertyDescriptor(l,y).enumerable})),f.push.apply(f,c)}return f}function n(l){for(var o=1;o=0;--Y){var K=this.tryEntries[Y],w=K.completion;if(K.tryLoc==="root")return G("end");if(K.tryLoc<=this.prev){var H=f.call(K,"catchLoc"),_=f.call(K,"finallyLoc");if(H&&_){if(this.prev=0;--G){var Y=this.tryEntries[G];if(Y.tryLoc<=this.prev&&f.call(Y,"finallyLoc")&&this.prev=0;--M){var G=this.tryEntries[M];if(G.finallyLoc===O)return this.complete(G.completion,G.afterLoc),Ue(G),L}},catch:function(O){for(var M=this.tryEntries.length-1;M>=0;--M){var G=this.tryEntries[M];if(G.tryLoc===O){var Y=G.completion;if(Y.type==="throw"){var K=Y.arg;Ue(G)}return K}}throw new Error("illegal catch attempt")},delegateYield:function(O,M,G){return this.delegate={iterator:re(O),resultName:M,nextLoc:G},this.method==="next"&&(this.arg=n),L}},l}s.exports=a,s.exports.__esModule=!0,s.exports.default=s.exports},70125:function(s,v,e){var i=e(69605),a=e(40201),n=e(91229),l=e(92725);function o(f,c){return i(f)||a(f,c)||n(f,c)||l()}s.exports=o,s.exports.__esModule=!0,s.exports.default=s.exports},79664:function(s,v,e){var i=e(45466),a=e(52748),n=e(91229),l=e(16207);function o(f){return i(f)||a(f)||n(f)||l()}s.exports=o,s.exports.__esModule=!0,s.exports.default=s.exports},42523:function(s,v,e){var i=e(26851).default;function a(n,l){if(i(n)!=="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var f=o.call(n,l||"default");if(i(f)!=="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(n)}s.exports=a,s.exports.__esModule=!0,s.exports.default=s.exports},80652:function(s,v,e){var i=e(26851).default,a=e(42523);function n(l){var o=a(l,"string");return i(o)==="symbol"?o:String(o)}s.exports=n,s.exports.__esModule=!0,s.exports.default=s.exports},26851:function(s){function v(e){"@babel/helpers - typeof";return s.exports=v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s.exports.__esModule=!0,s.exports.default=s.exports,v(e)}s.exports=v,s.exports.__esModule=!0,s.exports.default=s.exports},91229:function(s,v,e){var i=e(16487);function a(n,l){if(n){if(typeof n=="string")return i(n,l);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return i(n,l)}}s.exports=a,s.exports.__esModule=!0,s.exports.default=s.exports},5108:function(s,v,e){"use strict";e.d(v,{Z:function(){return i}});function i(a){if(Array.isArray(a))return a}},54744:function(s,v,e){"use strict";e.d(v,{Z:function(){return a}});var i=e(96386);function a(n,l,o){return l=(0,i.Z)(l),l in n?Object.defineProperty(n,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[l]=o,n}},5527:function(s,v,e){"use strict";e.d(v,{Z:function(){return i}});function i(){return i=Object.assign?Object.assign.bind():function(a){for(var n=1;n=0)&&(o[c]=n[c]);return o}function a(n,l){if(n==null)return{};var o=i(n,l),f,c;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(n);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(n,f)&&(o[f]=n[f])}return o}},96386:function(s,v,e){"use strict";e.d(v,{Z:function(){return n}});var i=e(51062);function a(l,o){if((0,i.Z)(l)!=="object"||l===null)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var c=f.call(l,o||"default");if((0,i.Z)(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function n(l){var o=a(l,"string");return(0,i.Z)(o)==="symbol"?o:String(o)}},51062:function(s,v,e){"use strict";e.d(v,{Z:function(){return i}});function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(a)}},4245:function(s,v,e){"use strict";e.d(v,{Z:function(){return a}});function i(n,l){(l==null||l>n.length)&&(l=n.length);for(var o=0,f=new Array(l);oa.length)&&(n=a.length);for(var l=0,o=new Array(n);l=0)&&(o[c]=n[c]);return o}function a(n,l){if(n==null)return{};var o=i(n,l),f,c;if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(n);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(n,f)&&(o[f]=n[f])}return o}},48259:function(s,v,e){"use strict";e.d(v,{Z:function(){return o}});function i(f){if(Array.isArray(f))return f}function a(f,c){var y=f==null?null:typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var m,p,h,x,g=[],E=!0,b=!1;try{if(h=(y=y.call(f)).next,c===0){if(Object(y)!==y)return;E=!1}else for(;!(E=(m=h.call(y)).done)&&(g.push(m.value),g.length!==c);E=!0);}catch(R){b=!0,p=R}finally{try{if(!E&&y.return!=null&&(x=y.return(),Object(x)!==x))return}finally{if(b)throw p}}return g}}var n=e(97559);function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(f,c){return i(f)||a(f,c)||(0,n.Z)(f,c)||l()}},46682:function(s,v,e){"use strict";e.d(v,{Z:function(){return f}});var i=e(16841);function a(c){if(Array.isArray(c))return(0,i.Z)(c)}function n(c){if(typeof Symbol!="undefined"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}var l=e(97559);function o(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(c){return a(c)||n(c)||(0,l.Z)(c)||o()}},50458:function(s,v,e){"use strict";e.d(v,{Z:function(){return n}});var i=e(7301);function a(l,o){if((0,i.Z)(l)!=="object"||l===null)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var c=f.call(l,o||"default");if((0,i.Z)(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(l)}function n(l){var o=a(l,"string");return(0,i.Z)(o)==="symbol"?o:String(o)}},7301:function(s,v,e){"use strict";e.d(v,{Z:function(){return i}});function i(a){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(a)}},97559:function(s,v,e){"use strict";e.d(v,{Z:function(){return a}});var i=e(16841);function a(n,l){if(n){if(typeof n=="string")return(0,i.Z)(n,l);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return(0,i.Z)(n,l)}}},38104:function(s,v,e){"use strict";e.d(v,{ZT:function(){return a},_T:function(){return l},ev:function(){return $},pi:function(){return n}});var i=function(O,M){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var K in Y)Object.prototype.hasOwnProperty.call(Y,K)&&(G[K]=Y[K])},i(O,M)};function a(O,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");i(O,M);function G(){this.constructor=O}O.prototype=M===null?Object.create(M):(G.prototype=M.prototype,new G)}var n=function(){return n=Object.assign||function(M){for(var G,Y=1,K=arguments.length;Y=0;_--)(H=O[_])&&(w=(K<3?H(w):K>3?H(M,G,w):H(M,G))||w);return K>3&&w&&Object.defineProperty(M,G,w),w}function f(O,M){return function(G,Y){M(G,Y,O)}}function c(O,M,G,Y,K,w){function H(fe){if(fe!==void 0&&typeof fe!="function")throw new TypeError("Function expected");return fe}for(var _=Y.kind,Q=_==="getter"?"get":_==="setter"?"set":"value",X=!M&&O?Y.static?O:O.prototype:null,Te=M||(X?Object.getOwnPropertyDescriptor(X,Y.name):{}),_e,lt=!1,nt=G.length-1;nt>=0;nt--){var it={};for(var wt in Y)it[wt]=wt==="access"?{}:Y[wt];for(var wt in Y.access)it.access[wt]=Y.access[wt];it.addInitializer=function(fe){if(lt)throw new TypeError("Cannot add initializers after decoration has completed");w.push(H(fe||null))};var ee=(0,G[nt])(_==="accessor"?{get:Te.get,set:Te.set}:Te[Q],it);if(_==="accessor"){if(ee===void 0)continue;if(ee===null||typeof ee!="object")throw new TypeError("Object expected");(_e=H(ee.get))&&(Te.get=_e),(_e=H(ee.set))&&(Te.set=_e),(_e=H(ee.init))&&K.unshift(_e)}else(_e=H(ee))&&(_==="field"?K.unshift(_e):Te[Q]=_e)}X&&Object.defineProperty(X,Y.name,Te),lt=!0}function y(O,M,G){for(var Y=arguments.length>2,K=0;K0&&w[w.length-1])&&(X[0]===6||X[0]===2)){G=0;continue}if(X[0]===3&&(!w||X[1]>w[0]&&X[1]=O.length&&(O=void 0),{value:O&&O[Y++],done:!O}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(O,M){var G=typeof Symbol=="function"&&O[Symbol.iterator];if(!G)return O;var Y=G.call(O),K,w=[],H;try{for(;(M===void 0||M-- >0)&&!(K=Y.next()).done;)w.push(K.value)}catch(_){H={error:_}}finally{try{K&&!K.done&&(G=Y.return)&&G.call(Y)}finally{if(H)throw H.error}}return w}function B(){for(var O=[],M=0;M1||_(lt,nt)})})}function _(lt,nt){try{Q(Y[lt](nt))}catch(it){_e(w[0][3],it)}}function Q(lt){lt.value instanceof T?Promise.resolve(lt.value.v).then(X,Te):_e(w[0][2],lt)}function X(lt){_("next",lt)}function Te(lt){_("throw",lt)}function _e(lt,nt){lt(nt),w.shift(),w.length&&_(w[0][0],w[0][1])}}function z(O){var M,G;return M={},Y("next"),Y("throw",function(K){throw K}),Y("return"),M[Symbol.iterator]=function(){return this},M;function Y(K,w){M[K]=O[K]?function(H){return(G=!G)?{value:T(O[K](H)),done:!1}:w?w(H):H}:w}}function V(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=O[Symbol.asyncIterator],G;return M?M.call(O):(O=typeof R=="function"?R(O):O[Symbol.iterator](),G={},Y("next"),Y("throw"),Y("return"),G[Symbol.asyncIterator]=function(){return this},G);function Y(w){G[w]=O[w]&&function(H){return new Promise(function(_,Q){H=O[w](H),K(_,Q,H.done,H.value)})}}function K(w,H,_,Q){Promise.resolve(Q).then(function(X){w({value:X,done:_})},H)}}function te(O,M){return Object.defineProperty?Object.defineProperty(O,"raw",{value:M}):O.raw=M,O}var q=Object.create?function(O,M){Object.defineProperty(O,"default",{enumerable:!0,value:M})}:function(O,M){O.default=M};function de(O){if(O&&O.__esModule)return O;var M={};if(O!=null)for(var G in O)G!=="default"&&Object.prototype.hasOwnProperty.call(O,G)&&E(M,O,G);return q(M,O),M}function Ce(O){return O&&O.__esModule?O:{default:O}}function Oe(O,M,G,Y){if(G==="a"&&!Y)throw new TypeError("Private accessor was defined without a getter");if(typeof M=="function"?O!==M||!Y:!M.has(O))throw new TypeError("Cannot read private member from an object whose class did not declare it");return G==="m"?Y:G==="a"?Y.call(O):Y?Y.value:M.get(O)}function Le(O,M,G,Y,K){if(Y==="m")throw new TypeError("Private method is not writable");if(Y==="a"&&!K)throw new TypeError("Private accessor was defined without a setter");if(typeof M=="function"?O!==M||!K:!M.has(O))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Y==="a"?K.call(O,G):K?K.value=G:M.set(O,G),G}function ke(O,M){if(M===null||typeof M!="object"&&typeof M!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof O=="function"?M===O:O.has(M)}function Ue(O,M,G){if(M!=null){if(typeof M!="object"&&typeof M!="function")throw new TypeError("Object expected.");var Y;if(G){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Y=M[Symbol.asyncDispose]}if(Y===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Y=M[Symbol.dispose]}if(typeof Y!="function")throw new TypeError("Object not disposable.");O.stack.push({value:M,dispose:Y,async:G})}else G&&O.stack.push({async:!0});return M}var J=typeof SuppressedError=="function"?SuppressedError:function(O,M,G){var Y=new Error(G);return Y.name="SuppressedError",Y.error=O,Y.suppressed=M,Y};function re(O){function M(Y){O.error=O.hasError?new J(Y,O.error,"An error was suppressed during disposal."):Y,O.hasError=!0}function G(){for(;O.stack.length;){var Y=O.stack.pop();try{var K=Y.dispose&&Y.dispose.call(Y.value);if(Y.async)return Promise.resolve(K).then(G,function(w){return M(w),G()})}catch(w){M(w)}}if(O.hasError)throw O.error}return G()}var ne={__extends:a,__assign:n,__rest:l,__decorate:o,__param:f,__metadata:h,__awaiter:x,__generator:g,__createBinding:E,__exportStar:b,__values:R,__read:N,__spread:B,__spreadArrays:L,__spreadArray:$,__await:T,__asyncGenerator:k,__asyncDelegator:z,__asyncValues:V,__makeTemplateObject:te,__importStar:de,__importDefault:Ce,__classPrivateFieldGet:Oe,__classPrivateFieldSet:Le,__classPrivateFieldIn:ke,__addDisposableResource:Ue,__disposeResources:re}}},__webpack_module_cache__={};function __webpack_require__(s){var v=__webpack_module_cache__[s];if(v!==void 0)return v.exports;var e=__webpack_module_cache__[s]={exports:{}};return __webpack_modules__[s].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.n=function(s){var v=s&&s.__esModule?function(){return s.default}:function(){return s};return __webpack_require__.d(v,{a:v}),v}}(),function(){var s=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v;__webpack_require__.t=function(e,i){if(i&1&&(e=this(e)),i&8||typeof e=="object"&&e&&(i&4&&e.__esModule||i&16&&typeof e.then=="function"))return e;var a=Object.create(null);__webpack_require__.r(a);var n={};v=v||[null,s({}),s([]),s(s)];for(var l=i&2&&e;typeof l=="object"&&!~v.indexOf(l);l=s(l))Object.getOwnPropertyNames(l).forEach(function(o){n[o]=function(){return e[o]}});return n.default=function(){return e},__webpack_require__.d(a,n),a}}(),function(){__webpack_require__.d=function(s,v){for(var e in v)__webpack_require__.o(v,e)&&!__webpack_require__.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:v[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(s){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(v,e){return __webpack_require__.f[e](s,v),v},[]))}}(),function(){__webpack_require__.u=function(s){return""+({1:"docs__reactive__computed-async.md",5:"docs__core__field-render.md",9:"nm__dumi__dist__client__pages__Demo__index",33:"docs__core__field-group.md",65:"nm__dumi__dist__client__pages__404",74:"docs__core__question.md",75:"docs__reactive__watch-objects.md",112:"docs__reactive__watch-use.md",137:"docs__reactive__computed-options.md",164:"docs__core__quick-start.md",244:"docs__reactive__computed-objects.md",252:"docs__reactive__computed-sync.md",290:"docs__core__index.md",396:"docs__reactive__store.md",401:"docs__core__field-validate.md",512:"docs__core__example-login.md",519:"nm__dumi__theme-default__layouts__DocLayout__index",534:"docs__core__form-validate.md",540:"docs__core__history.md",546:"docs__api__index.md",597:"docs__render__index.md",609:"docs__reactive__computed-intro.md",616:"docs__core__form-create.md",684:"docs__core__field-dirty.md",689:"docs__core__form-submit.md",790:"docs__reactive__state.md",865:"docs__core__example-captcha.md",877:"docs__core__field-related.md",901:"docs__core__form-action.md",910:"docs__core__form-dirty.md",920:"docs__reactive__watch.md",921:"docs__reactive__watch-computed-diff.md",923:"dumi__tmp-production__dumi__theme__ContextWrapper",925:"docs__core__field.md",935:"docs__index.md",943:"docs__reactive__index.md",952:"docs__reactive__render.md",985:"docs__core__install.md"}[s]||s)+"."+{1:"a25ae9b5",5:"99a2442d",9:"1a6dbb79",32:"2c0bdc3d",33:"d786d30f",65:"253b9ebe",74:"5403db36",75:"650de020",98:"c517831f",112:"7b828092",137:"68d2e828",164:"c4cef6a7",180:"2ca8ad4b",187:"4d32527e",244:"a88213b2",252:"f7faf3a8",290:"101b6bb8",335:"7b8e6cf6",396:"150f7565",401:"7a2c76db",489:"eb0a29db",512:"a81a0962",519:"eaf36e30",533:"798df0dd",534:"3517045b",540:"6794e468",546:"e43e7765",597:"1b5d5548",609:"d0bd9c46",616:"3097456b",654:"43aed6da",684:"240b57e9",687:"acaf5604",689:"0fcb6d33",761:"482cba2e",790:"e0ef441f",865:"8b52cb7d",877:"dd87aec5",901:"c51c3075",910:"dfe31ead",920:"a4e13400",921:"575166a8",922:"fadf1d5a",923:"ba866fcb",925:"4a7e8b38",935:"7e8447ae",943:"d885319f",952:"f2e32c02",985:"371def74"}[s]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(s){return""+({1:"docs__reactive__computed-async.md",5:"docs__core__field-render.md",9:"nm__dumi__dist__client__pages__Demo__index",33:"docs__core__field-group.md",65:"nm__dumi__dist__client__pages__404",74:"docs__core__question.md",75:"docs__reactive__watch-objects.md",112:"docs__reactive__watch-use.md",137:"docs__reactive__computed-options.md",164:"docs__core__quick-start.md",244:"docs__reactive__computed-objects.md",252:"docs__reactive__computed-sync.md",290:"docs__core__index.md",396:"docs__reactive__store.md",401:"docs__core__field-validate.md",512:"docs__core__example-login.md",534:"docs__core__form-validate.md",540:"docs__core__history.md",546:"docs__api__index.md",597:"docs__render__index.md",609:"docs__reactive__computed-intro.md",616:"docs__core__form-create.md",684:"docs__core__field-dirty.md",689:"docs__core__form-submit.md",790:"docs__reactive__state.md",865:"docs__core__example-captcha.md",877:"docs__core__field-related.md",901:"docs__core__form-action.md",910:"docs__core__form-dirty.md",920:"docs__reactive__watch.md",921:"docs__reactive__watch-computed-diff.md",925:"docs__core__field.md",935:"docs__index.md",943:"docs__reactive__index.md",952:"docs__reactive__render.md",985:"docs__core__install.md"}[s]||s)+"."+{1:"778c6473",5:"778c6473",9:"578aa5c0",33:"778c6473",65:"8b85f2d9",74:"778c6473",75:"778c6473",112:"778c6473",137:"778c6473",164:"778c6473",244:"778c6473",252:"778c6473",290:"778c6473",396:"778c6473",401:"778c6473",512:"778c6473",533:"dec64465",534:"778c6473",540:"778c6473",546:"778c6473",597:"778c6473",609:"778c6473",616:"778c6473",684:"778c6473",689:"778c6473",790:"778c6473",865:"778c6473",877:"778c6473",901:"778c6473",910:"778c6473",920:"778c6473",921:"778c6473",925:"778c6473",935:"778c6473",943:"778c6473",952:"778c6473",985:"778c6473"}[s]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(s){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.o=function(s,v){return Object.prototype.hasOwnProperty.call(s,v)}}(),function(){var s={},v="speedform-docs:";__webpack_require__.l=function(e,i,a,n){if(s[e]){s[e].push(i);return}var l,o;if(a!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c=0;_--)(H=O[_])&&(w=(K<3?H(w):K>3?H(M,G,w):H(M,G))||w);return K>3&&w&&Object.defineProperty(M,G,w),w}function f(O,M){return function(G,Y){M(G,Y,O)}}function c(O,M,G,Y,K,w){function H(fe){if(fe!==void 0&&typeof fe!="function")throw new TypeError("Function expected");return fe}for(var _=Y.kind,Q=_==="getter"?"get":_==="setter"?"set":"value",X=!M&&O?Y.static?O:O.prototype:null,Te=M||(X?Object.getOwnPropertyDescriptor(X,Y.name):{}),_e,lt=!1,nt=G.length-1;nt>=0;nt--){var it={};for(var wt in Y)it[wt]=wt==="access"?{}:Y[wt];for(var wt in Y.access)it.access[wt]=Y.access[wt];it.addInitializer=function(fe){if(lt)throw new TypeError("Cannot add initializers after decoration has completed");w.push(H(fe||null))};var ee=(0,G[nt])(_==="accessor"?{get:Te.get,set:Te.set}:Te[Q],it);if(_==="accessor"){if(ee===void 0)continue;if(ee===null||typeof ee!="object")throw new TypeError("Object expected");(_e=H(ee.get))&&(Te.get=_e),(_e=H(ee.set))&&(Te.set=_e),(_e=H(ee.init))&&K.unshift(_e)}else(_e=H(ee))&&(_==="field"?K.unshift(_e):Te[Q]=_e)}X&&Object.defineProperty(X,Y.name,Te),lt=!0}function y(O,M,G){for(var Y=arguments.length>2,K=0;K0&&w[w.length-1])&&(X[0]===6||X[0]===2)){G=0;continue}if(X[0]===3&&(!w||X[1]>w[0]&&X[1]=O.length&&(O=void 0),{value:O&&O[Y++],done:!O}}};throw new TypeError(M?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(O,M){var G=typeof Symbol=="function"&&O[Symbol.iterator];if(!G)return O;var Y=G.call(O),K,w=[],H;try{for(;(M===void 0||M-- >0)&&!(K=Y.next()).done;)w.push(K.value)}catch(_){H={error:_}}finally{try{K&&!K.done&&(G=Y.return)&&G.call(Y)}finally{if(H)throw H.error}}return w}function B(){for(var O=[],M=0;M1||_(lt,nt)})})}function _(lt,nt){try{Q(Y[lt](nt))}catch(it){_e(w[0][3],it)}}function Q(lt){lt.value instanceof T?Promise.resolve(lt.value.v).then(X,Te):_e(w[0][2],lt)}function X(lt){_("next",lt)}function Te(lt){_("throw",lt)}function _e(lt,nt){lt(nt),w.shift(),w.length&&_(w[0][0],w[0][1])}}function z(O){var M,G;return M={},Y("next"),Y("throw",function(K){throw K}),Y("return"),M[Symbol.iterator]=function(){return this},M;function Y(K,w){M[K]=O[K]?function(H){return(G=!G)?{value:T(O[K](H)),done:!1}:w?w(H):H}:w}}function V(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=O[Symbol.asyncIterator],G;return M?M.call(O):(O=typeof R=="function"?R(O):O[Symbol.iterator](),G={},Y("next"),Y("throw"),Y("return"),G[Symbol.asyncIterator]=function(){return this},G);function Y(w){G[w]=O[w]&&function(H){return new Promise(function(_,Q){H=O[w](H),K(_,Q,H.done,H.value)})}}function K(w,H,_,Q){Promise.resolve(Q).then(function(X){w({value:X,done:_})},H)}}function te(O,M){return Object.defineProperty?Object.defineProperty(O,"raw",{value:M}):O.raw=M,O}var q=Object.create?function(O,M){Object.defineProperty(O,"default",{enumerable:!0,value:M})}:function(O,M){O.default=M};function de(O){if(O&&O.__esModule)return O;var M={};if(O!=null)for(var G in O)G!=="default"&&Object.prototype.hasOwnProperty.call(O,G)&&E(M,O,G);return q(M,O),M}function Ce(O){return O&&O.__esModule?O:{default:O}}function Oe(O,M,G,Y){if(G==="a"&&!Y)throw new TypeError("Private accessor was defined without a getter");if(typeof M=="function"?O!==M||!Y:!M.has(O))throw new TypeError("Cannot read private member from an object whose class did not declare it");return G==="m"?Y:G==="a"?Y.call(O):Y?Y.value:M.get(O)}function Le(O,M,G,Y,K){if(Y==="m")throw new TypeError("Private method is not writable");if(Y==="a"&&!K)throw new TypeError("Private accessor was defined without a setter");if(typeof M=="function"?O!==M||!K:!M.has(O))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Y==="a"?K.call(O,G):K?K.value=G:M.set(O,G),G}function ke(O,M){if(M===null||typeof M!="object"&&typeof M!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof O=="function"?M===O:O.has(M)}function Ue(O,M,G){if(M!=null){if(typeof M!="object"&&typeof M!="function")throw new TypeError("Object expected.");var Y;if(G){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Y=M[Symbol.asyncDispose]}if(Y===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Y=M[Symbol.dispose]}if(typeof Y!="function")throw new TypeError("Object not disposable.");O.stack.push({value:M,dispose:Y,async:G})}else G&&O.stack.push({async:!0});return M}var J=typeof SuppressedError=="function"?SuppressedError:function(O,M,G){var Y=new Error(G);return Y.name="SuppressedError",Y.error=O,Y.suppressed=M,Y};function re(O){function M(Y){O.error=O.hasError?new J(Y,O.error,"An error was suppressed during disposal."):Y,O.hasError=!0}function G(){for(;O.stack.length;){var Y=O.stack.pop();try{var K=Y.dispose&&Y.dispose.call(Y.value);if(Y.async)return Promise.resolve(K).then(G,function(w){return M(w),G()})}catch(w){M(w)}}if(O.hasError)throw O.error}return G()}var ne={__extends:a,__assign:n,__rest:l,__decorate:o,__param:f,__metadata:h,__awaiter:x,__generator:g,__createBinding:E,__exportStar:b,__values:R,__read:N,__spread:B,__spreadArrays:L,__spreadArray:$,__await:T,__asyncGenerator:k,__asyncDelegator:z,__asyncValues:V,__makeTemplateObject:te,__importStar:de,__importDefault:Ce,__classPrivateFieldGet:Oe,__classPrivateFieldSet:Le,__classPrivateFieldIn:ke,__addDisposableResource:Ue,__disposeResources:re}}},__webpack_module_cache__={};function __webpack_require__(s){var v=__webpack_module_cache__[s];if(v!==void 0)return v.exports;var e=__webpack_module_cache__[s]={exports:{}};return __webpack_modules__[s].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.n=function(s){var v=s&&s.__esModule?function(){return s.default}:function(){return s};return __webpack_require__.d(v,{a:v}),v}}(),function(){var s=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v;__webpack_require__.t=function(e,i){if(i&1&&(e=this(e)),i&8||typeof e=="object"&&e&&(i&4&&e.__esModule||i&16&&typeof e.then=="function"))return e;var a=Object.create(null);__webpack_require__.r(a);var n={};v=v||[null,s({}),s([]),s(s)];for(var l=i&2&&e;typeof l=="object"&&!~v.indexOf(l);l=s(l))Object.getOwnPropertyNames(l).forEach(function(o){n[o]=function(){return e[o]}});return n.default=function(){return e},__webpack_require__.d(a,n),a}}(),function(){__webpack_require__.d=function(s,v){for(var e in v)__webpack_require__.o(v,e)&&!__webpack_require__.o(s,e)&&Object.defineProperty(s,e,{enumerable:!0,get:v[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(s){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(v,e){return __webpack_require__.f[e](s,v),v},[]))}}(),function(){__webpack_require__.u=function(s){return""+({1:"docs__reactive__computed-async.md",5:"docs__core__field-render.md",9:"nm__dumi__dist__client__pages__Demo__index",33:"docs__core__field-group.md",65:"nm__dumi__dist__client__pages__404",74:"docs__core__question.md",75:"docs__reactive__watch-objects.md",112:"docs__reactive__watch-use.md",137:"docs__reactive__computed-options.md",164:"docs__core__quick-start.md",244:"docs__reactive__computed-objects.md",252:"docs__reactive__computed-sync.md",290:"docs__core__index.md",396:"docs__reactive__store.md",401:"docs__core__field-validate.md",512:"docs__core__example-login.md",519:"nm__dumi__theme-default__layouts__DocLayout__index",534:"docs__core__form-validate.md",540:"docs__core__history.md",546:"docs__api__index.md",597:"docs__render__index.md",609:"docs__reactive__computed-intro.md",616:"docs__core__form-create.md",684:"docs__core__field-dirty.md",689:"docs__core__form-submit.md",790:"docs__reactive__state.md",865:"docs__core__example-captcha.md",877:"docs__core__field-related.md",901:"docs__core__form-action.md",910:"docs__core__form-dirty.md",920:"docs__reactive__watch.md",921:"docs__reactive__watch-computed-diff.md",923:"dumi__tmp-production__dumi__theme__ContextWrapper",925:"docs__core__field.md",935:"docs__index.md",943:"docs__reactive__index.md",952:"docs__reactive__render.md",985:"docs__core__install.md"}[s]||s)+"."+{1:"a25ae9b5",5:"99a2442d",9:"1a6dbb79",32:"2c0bdc3d",33:"d786d30f",65:"253b9ebe",74:"5403db36",75:"650de020",98:"e03305f8",112:"7b828092",137:"68d2e828",164:"c4cef6a7",180:"2ca8ad4b",187:"4d32527e",244:"a88213b2",252:"f7faf3a8",290:"101b6bb8",335:"7b8e6cf6",396:"150f7565",401:"7a2c76db",489:"eb0a29db",512:"a81a0962",519:"eaf36e30",533:"798df0dd",534:"3517045b",540:"6794e468",546:"e43e7765",597:"1b5d5548",609:"d0bd9c46",616:"3097456b",654:"43aed6da",684:"240b57e9",687:"acaf5604",689:"0fcb6d33",761:"482cba2e",790:"e0ef441f",865:"8b52cb7d",877:"dd87aec5",901:"c51c3075",910:"dfe31ead",920:"a4e13400",921:"575166a8",922:"fadf1d5a",923:"ba866fcb",925:"4a7e8b38",935:"7e8447ae",943:"d885319f",952:"f2e32c02",985:"371def74"}[s]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(s){return""+({1:"docs__reactive__computed-async.md",5:"docs__core__field-render.md",9:"nm__dumi__dist__client__pages__Demo__index",33:"docs__core__field-group.md",65:"nm__dumi__dist__client__pages__404",74:"docs__core__question.md",75:"docs__reactive__watch-objects.md",112:"docs__reactive__watch-use.md",137:"docs__reactive__computed-options.md",164:"docs__core__quick-start.md",244:"docs__reactive__computed-objects.md",252:"docs__reactive__computed-sync.md",290:"docs__core__index.md",396:"docs__reactive__store.md",401:"docs__core__field-validate.md",512:"docs__core__example-login.md",534:"docs__core__form-validate.md",540:"docs__core__history.md",546:"docs__api__index.md",597:"docs__render__index.md",609:"docs__reactive__computed-intro.md",616:"docs__core__form-create.md",684:"docs__core__field-dirty.md",689:"docs__core__form-submit.md",790:"docs__reactive__state.md",865:"docs__core__example-captcha.md",877:"docs__core__field-related.md",901:"docs__core__form-action.md",910:"docs__core__form-dirty.md",920:"docs__reactive__watch.md",921:"docs__reactive__watch-computed-diff.md",925:"docs__core__field.md",935:"docs__index.md",943:"docs__reactive__index.md",952:"docs__reactive__render.md",985:"docs__core__install.md"}[s]||s)+"."+{1:"778c6473",5:"778c6473",9:"578aa5c0",33:"778c6473",65:"8b85f2d9",74:"778c6473",75:"778c6473",112:"778c6473",137:"778c6473",164:"778c6473",244:"778c6473",252:"778c6473",290:"778c6473",396:"778c6473",401:"778c6473",512:"778c6473",533:"dec64465",534:"778c6473",540:"778c6473",546:"778c6473",597:"778c6473",609:"778c6473",616:"778c6473",684:"778c6473",689:"778c6473",790:"778c6473",865:"778c6473",877:"778c6473",901:"778c6473",910:"778c6473",920:"778c6473",921:"778c6473",925:"778c6473",935:"778c6473",943:"778c6473",952:"778c6473",985:"778c6473"}[s]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(s){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.o=function(s,v){return Object.prototype.hasOwnProperty.call(s,v)}}(),function(){var s={},v="speedform-docs:";__webpack_require__.l=function(e,i,a,n){if(s[e]){s[e].push(i);return}var l,o;if(a!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c0&&arguments[0]!==void 0?arguments[0]:"";return ur.endsWith("/")?ur:"".concat(ur,"/")}var Rr=__webpack_require__(85801),fn=__webpack_require__(5527),vn=__webpack_require__(88161),hn=["redirect"];function na(ur){var tr=ur.routesById,Wr=ur.parentId,yn=ur.routeComponents;return Object.keys(tr).filter(function(Nn){return tr[Nn].parentId===Wr}).map(function(Nn){var Un=go((0,F.Z)({route:tr[Nn],routeComponent:yn[Nn],loadingComponent:ur.loadingComponent,reactRouter5Compat:ur.reactRouter5Compat},ur.reactRouter5Compat&&{hasChildren:Object.keys(tr).filter(function(Na){return tr[Na].parentId===Nn}).length>0})),Jn=na({routesById:tr,routeComponents:yn,parentId:Un.id,loadingComponent:ur.loadingComponent,reactRouter5Compat:ur.reactRouter5Compat});return Jn.length>0&&(Un.children=Jn,Un.routes=Jn),Un})}function ma(ur){var tr=(0,nr.UO)(),Wr=(0,F.Z)((0,F.Z)({},ur),{},{to:(0,nr.Gn)(ur.to,tr)});return De.createElement(nr.Fg,(0,fn.Z)({replace:!0},Wr))}function go(ur){var tr=ur.route,Wr=tr.redirect,yn=(0,Rr.Z)(tr,hn),Nn=ur.reactRouter5Compat?oo:io;return(0,F.Z)({element:Wr?De.createElement(ma,{to:Wr}):De.createElement(vn.X.Provider,{value:{route:ur.route}},De.createElement(Nn,{loader:De.memo(ur.routeComponent),loadingComponent:ur.loadingComponent||fi,hasChildren:ur.hasChildren}))},yn)}function fi(){return De.createElement("div",null)}function oo(ur){var tr=(0,vn.Q)(),Wr=tr.route,yn=(0,Ir.Ov)(),Nn=yn.history,Un=yn.clientRoutes,Jn=(0,nr.UO)(),Na={params:Jn,isExact:!0,path:Wr.path,url:Nn.location.pathname},uo=ur.loader;return De.createElement(De.Suspense,{fallback:De.createElement(ur.loadingComponent,null)},De.createElement(uo,{location:Nn.location,match:Na,history:Nn,params:Jn,route:Wr,routes:Un},ur.hasChildren&&De.createElement(nr.j3,null)))}function io(ur){var tr=ur.loader;return De.createElement(De.Suspense,{fallback:De.createElement(ur.loadingComponent,null)},De.createElement(tr,null))}var Ao=null;function vi(){return Ao}function Ui(ur){var tr=ur.history,Wr=De.useState({action:tr.action,location:tr.location}),yn=Ot(Wr,2),Nn=yn[0],Un=yn[1];return(0,De.useLayoutEffect)(function(){return tr.listen(Un)},[tr]),(0,De.useLayoutEffect)(function(){function Jn(Na){ur.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:ur.routes,clientRoutes:ur.clientRoutes,location:Na.location,action:Na.action,basename:ur.basename,isFirst:!!Na.isFirst}})}return Jn({location:Nn.location,action:Nn.action,isFirst:!0}),tr.listen(Jn)},[tr,ur.routes,ur.clientRoutes]),De.createElement(nr.F0,{navigator:tr,location:Nn.location,basename:ur.basename},ur.children)}function iu(){var ur=(0,Ir.Ov)(),tr=ur.clientRoutes;return(0,nr.V$)(tr)}var pi=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Ci=function(tr,Wr){var yn=tr.basename||"/",Nn=na({routesById:tr.routes,routeComponents:tr.routeComponents,loadingComponent:tr.loadingComponent,reactRouter5Compat:tr.reactRouter5Compat});tr.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Nn}});for(var Un=De.createElement(Ui,{basename:yn,pluginManager:tr.pluginManager,routes:tr.routes,clientRoutes:Nn,history:tr.history},Wr),Jn=0,Na=pi;Jn1&&location.pathname.endsWith("/")&&history.replaceState({},"",location.pathname.slice(0,-1)+location.search+location.hash),function(){var ur=typeof navigator!="undefined"&&navigator.cookieEnabled&&typeof window.localStorage!="undefined"&&localStorage.getItem("dumi:prefers-color")||"light",tr=window.matchMedia("(prefers-color-scheme: dark)").matches,Wr=["light","dark","auto"];document.documentElement.setAttribute("data-prefers-color",ur===Wr[2]?tr?Wr[1]:Wr[0]:Wr.indexOf(ur)>-1?ur:Wr[0])}(),cl(),window.g_umi={version:"4.0.90"},(0,P.rl)((0,Iu.We)())})()})(); }()); \ No newline at end of file diff --git a/~demos/:id/index.html b/~demos/:id/index.html index e7ce799..d284fbc 100644 --- a/~demos/:id/index.html +++ b/~demos/:id/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-core-form-action-demo-0/index.html b/~demos/docs-core-form-action-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-core-form-action-demo-0/index.html +++ b/~demos/docs-core-form-action-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-core-quick-start-demo-0/index.html b/~demos/docs-core-quick-start-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-core-quick-start-demo-0/index.html +++ b/~demos/docs-core-quick-start-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-0/index.html b/~demos/docs-reactive-computed-async-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-0/index.html +++ b/~demos/docs-reactive-computed-async-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-1/index.html b/~demos/docs-reactive-computed-async-demo-1/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-1/index.html +++ b/~demos/docs-reactive-computed-async-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-2/index.html b/~demos/docs-reactive-computed-async-demo-2/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-2/index.html +++ b/~demos/docs-reactive-computed-async-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-3/index.html b/~demos/docs-reactive-computed-async-demo-3/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-3/index.html +++ b/~demos/docs-reactive-computed-async-demo-3/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-4/index.html b/~demos/docs-reactive-computed-async-demo-4/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-4/index.html +++ b/~demos/docs-reactive-computed-async-demo-4/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-5/index.html b/~demos/docs-reactive-computed-async-demo-5/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-5/index.html +++ b/~demos/docs-reactive-computed-async-demo-5/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-6/index.html b/~demos/docs-reactive-computed-async-demo-6/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-6/index.html +++ b/~demos/docs-reactive-computed-async-demo-6/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-7/index.html b/~demos/docs-reactive-computed-async-demo-7/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-7/index.html +++ b/~demos/docs-reactive-computed-async-demo-7/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-8/index.html b/~demos/docs-reactive-computed-async-demo-8/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-8/index.html +++ b/~demos/docs-reactive-computed-async-demo-8/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-async-demo-9/index.html b/~demos/docs-reactive-computed-async-demo-9/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-async-demo-9/index.html +++ b/~demos/docs-reactive-computed-async-demo-9/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-0/index.html b/~demos/docs-reactive-computed-intro-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-intro-demo-0/index.html +++ b/~demos/docs-reactive-computed-intro-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-1/index.html b/~demos/docs-reactive-computed-intro-demo-1/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-intro-demo-1/index.html +++ b/~demos/docs-reactive-computed-intro-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-2/index.html b/~demos/docs-reactive-computed-intro-demo-2/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-intro-demo-2/index.html +++ b/~demos/docs-reactive-computed-intro-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-3/index.html b/~demos/docs-reactive-computed-intro-demo-3/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-intro-demo-3/index.html +++ b/~demos/docs-reactive-computed-intro-demo-3/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-4/index.html b/~demos/docs-reactive-computed-intro-demo-4/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-intro-demo-4/index.html +++ b/~demos/docs-reactive-computed-intro-demo-4/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-5/index.html b/~demos/docs-reactive-computed-intro-demo-5/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-intro-demo-5/index.html +++ b/~demos/docs-reactive-computed-intro-demo-5/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-intro-demo-6/index.html b/~demos/docs-reactive-computed-intro-demo-6/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-intro-demo-6/index.html +++ b/~demos/docs-reactive-computed-intro-demo-6/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-objects-demo-0/index.html b/~demos/docs-reactive-computed-objects-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-objects-demo-0/index.html +++ b/~demos/docs-reactive-computed-objects-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-objects-demo-1/index.html b/~demos/docs-reactive-computed-objects-demo-1/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-objects-demo-1/index.html +++ b/~demos/docs-reactive-computed-objects-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-objects-demo-2/index.html b/~demos/docs-reactive-computed-objects-demo-2/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-objects-demo-2/index.html +++ b/~demos/docs-reactive-computed-objects-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-objects-demo-3/index.html b/~demos/docs-reactive-computed-objects-demo-3/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-objects-demo-3/index.html +++ b/~demos/docs-reactive-computed-objects-demo-3/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-computed-sync-demo-0/index.html b/~demos/docs-reactive-computed-sync-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-computed-sync-demo-0/index.html +++ b/~demos/docs-reactive-computed-sync-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-render-demo-0/index.html b/~demos/docs-reactive-render-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-render-demo-0/index.html +++ b/~demos/docs-reactive-render-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-render-demo-1/index.html b/~demos/docs-reactive-render-demo-1/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-render-demo-1/index.html +++ b/~demos/docs-reactive-render-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-render-demo-2/index.html b/~demos/docs-reactive-render-demo-2/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-render-demo-2/index.html +++ b/~demos/docs-reactive-render-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-state-demo-0/index.html b/~demos/docs-reactive-state-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-state-demo-0/index.html +++ b/~demos/docs-reactive-state-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-state-demo-1/index.html b/~demos/docs-reactive-state-demo-1/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-state-demo-1/index.html +++ b/~demos/docs-reactive-state-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-state-demo-2/index.html b/~demos/docs-reactive-state-demo-2/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-state-demo-2/index.html +++ b/~demos/docs-reactive-state-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-watch-demo-0/index.html b/~demos/docs-reactive-watch-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-watch-demo-0/index.html +++ b/~demos/docs-reactive-watch-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-watch-demo-1/index.html b/~demos/docs-reactive-watch-demo-1/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-watch-demo-1/index.html +++ b/~demos/docs-reactive-watch-demo-1/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-watch-demo-2/index.html b/~demos/docs-reactive-watch-demo-2/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-watch-demo-2/index.html +++ b/~demos/docs-reactive-watch-demo-2/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/~demos/docs-reactive-watch-objects-demo-0/index.html b/~demos/docs-reactive-watch-objects-demo-0/index.html index e7ce799..d284fbc 100644 --- a/~demos/docs-reactive-watch-objects-demo-0/index.html +++ b/~demos/docs-reactive-watch-objects-demo-0/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file