@airma/core
Advanced tools
Comparing version 16.0.2 to 16.1.0-beta
@@ -1,1 +0,1 @@ | ||
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["@airma/core"]=r():t["@airma/core"]=r()}(self,(()=>(()=>{var t={4933:(t,r,e)=>{var n=e(6291),o=e(7073),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},8209:(t,r,e)=>{var n=e(1814),o=e(7073),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a constructor")}},9076:(t,r,e)=>{var n=e(6291),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},5822:(t,r,e)=>{var n=e(6802),o=e(2275),i=e(6462).f,c=n("unscopables"),u=Array.prototype;null==u[c]&&i(u,c,{configurable:!0,value:o(null)}),t.exports=function(t){u[c][t]=!0}},4905:(t,r,e)=>{var n=e(2366),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},5029:(t,r,e)=>{var n=e(678),o=e(6971),i=e(4821),c=function(t){return function(r,e,c){var u,a=n(r),s=i(a),f=o(c,s);if(t&&e!=e){for(;s>f;)if((u=a[f++])!=u)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},9020:(t,r,e)=>{"use strict";var n=e(5061);t.exports=function(t,r){var e=[][t];return!!e&&n((function(){e.call(null,r||function(){return 1},1)}))}},2040:(t,r,e)=>{var n=e(4933),o=e(7615),i=e(2901),c=e(4821),u=TypeError,a=function(t){return function(r,e,a,s){n(e);var f=o(r),p=i(f),l=c(f),v=t?l-1:0,y=t?-1:1;if(a<2)for(;;){if(v in p){s=p[v],v+=y;break}if(v+=y,t?v<0:l<=v)throw u("Reduce of empty array with no initial value")}for(;t?v>=0:l>v;v+=y)v in p&&(s=e(s,p[v],v,f));return s}};t.exports={left:a(!1),right:a(!0)}},1892:(t,r,e)=>{var n=e(119),o=e(1814),i=e(2366),c=e(6802)("species"),u=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===u||n(r.prototype))||i(r)&&null===(r=r[c]))&&(r=void 0)),void 0===r?u:r}},7021:(t,r,e)=>{var n=e(1892);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},5489:(t,r,e)=>{var n=e(936),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},486:(t,r,e)=>{var n=e(8171),o=e(6291),i=e(5489),c=e(6802)("toStringTag"),u=Object,a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=u(t),c))?e:a?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},7247:(t,r,e)=>{"use strict";var n=e(3927),o=e(4933),i=e(4905);t.exports=function(){for(var t,r=i(this),e=o(r.delete),c=!0,u=0,a=arguments.length;u<a;u++)t=n(e,r,arguments[u]),c=c&&t;return!!c}},6810:(t,r,e)=>{var n=e(8382),o=e(2466),i=e(8117),c=e(6462);t.exports=function(t,r,e){for(var u=o(r),a=c.f,s=i.f,f=0;f<u.length;f++){var p=u[f];n(t,p)||e&&n(e,p)||a(t,p,s(r,p))}}},149:(t,r,e)=>{var n=e(5061);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4562:t=>{t.exports=function(t,r){return{value:t,done:r}}},430:(t,r,e)=>{var n=e(1502),o=e(6462),i=e(6034);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},6034:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},5850:(t,r,e)=>{var n=e(6291),o=e(6462),i=e(7192),c=e(1756);t.exports=function(t,r,e,u){u||(u={});var a=u.enumerable,s=void 0!==u.name?u.name:r;if(n(e)&&i(e,s,u),u.global)a?t[r]=e:c(r,e);else{try{u.unsafe?t[r]&&(a=!0):delete t[r]}catch(t){}a?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},1756:(t,r,e)=>{var n=e(5001),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},1502:(t,r,e)=>{var n=e(5061);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5178:t=>{var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},6009:(t,r,e)=>{var n=e(5001),o=e(2366),i=n.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},9224:t=>{var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},8514:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7234:(t,r,e)=>{var n=e(6009)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},566:(t,r,e)=>{var n=e(5489),o=e(5001);t.exports="process"==n(o.process)},9966:(t,r,e)=>{var n=e(3425);t.exports=n("navigator","userAgent")||""},2821:(t,r,e)=>{var n,o,i=e(5001),c=e(9966),u=i.process,a=i.Deno,s=u&&u.versions||a&&a.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&c&&(!(n=c.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=c.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},2089:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9638:(t,r,e)=>{var n=e(5001),o=e(8117).f,i=e(430),c=e(5850),u=e(1756),a=e(6810),s=e(1092);t.exports=function(t,r){var e,f,p,l,v,y=t.target,h=t.global,g=t.stat;if(e=h?n:g?n[y]||u(y,{}):(n[y]||{}).prototype)for(f in r){if(l=r[f],p=t.dontCallGetSet?(v=o(e,f))&&v.value:e[f],!s(h?f:y+(g?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;a(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),c(e,f,l,t)}}},5061:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},5816:(t,r,e)=>{"use strict";var n=e(119),o=e(4821),i=e(9224),c=e(9918),u=function(t,r,e,a,s,f,p,l){for(var v,y,h=s,g=0,b=!!p&&c(p,l);g<a;)g in e&&(v=b?b(e[g],g,r):e[g],f>0&&n(v)?(y=o(v),h=u(t,r,v,y,h,f-1)-1):(i(h+1),t[h]=v),h++),g++;return h};t.exports=u},9918:(t,r,e)=>{var n=e(1017),o=e(4933),i=e(8483),c=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?c(t,r):function(){return t.apply(r,arguments)}}},8483:(t,r,e)=>{var n=e(5061);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},3927:(t,r,e)=>{var n=e(8483),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9873:(t,r,e)=>{var n=e(1502),o=e(8382),i=Function.prototype,c=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),a=u&&"something"===function(){}.name,s=u&&(!n||n&&c(i,"name").configurable);t.exports={EXISTS:u,PROPER:a,CONFIGURABLE:s}},1017:(t,r,e)=>{var n=e(5489),o=e(936);t.exports=function(t){if("Function"===n(t))return o(t)}},936:(t,r,e)=>{var n=e(8483),o=Function.prototype,i=o.call,c=n&&o.bind.bind(i,i);t.exports=n?c:function(t){return function(){return i.apply(t,arguments)}}},3425:(t,r,e)=>{var n=e(5001),o=e(6291),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(n[t]):n[t]&&n[t][r]}},6354:(t,r,e)=>{var n=e(486),o=e(3815),i=e(860),c=e(501),u=e(6802)("iterator");t.exports=function(t){if(!i(t))return o(t,u)||o(t,"@@iterator")||c[n(t)]}},8437:(t,r,e)=>{var n=e(3927),o=e(4933),i=e(4905),c=e(7073),u=e(6354),a=TypeError;t.exports=function(t,r){var e=arguments.length<2?u(t):r;if(o(e))return i(n(e,t));throw a(c(t)+" is not iterable")}},7032:(t,r,e)=>{var n=e(3927);t.exports=function(t){return n(Map.prototype.entries,t)}},3815:(t,r,e)=>{var n=e(4933),o=e(860);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},5001:(t,r,e)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},8382:(t,r,e)=>{var n=e(936),o=e(7615),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},2499:t=>{t.exports={}},2118:(t,r,e)=>{var n=e(3425);t.exports=n("document","documentElement")},7788:(t,r,e)=>{var n=e(1502),o=e(5061),i=e(6009);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2901:(t,r,e)=>{var n=e(936),o=e(5061),i=e(5489),c=Object,u=n("".split);t.exports=o((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?u(t,""):c(t)}:c},685:(t,r,e)=>{var n=e(936),o=e(6291),i=e(9982),c=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},684:(t,r,e)=>{var n,o,i,c=e(1899),u=e(5001),a=e(2366),s=e(430),f=e(8382),p=e(9982),l=e(1695),v=e(2499),y="Object already initialized",h=u.TypeError,g=u.WeakMap;if(c||p.state){var b=p.state||(p.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,r){if(b.has(t))throw h(y);return r.facade=t,b.set(t,r),r},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var d=l("state");v[d]=!0,n=function(t,r){if(f(t,d))throw h(y);return r.facade=t,s(t,d,r),r},o=function(t){return f(t,d)?t[d]:{}},i=function(t){return f(t,d)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!a(r)||(e=o(r)).type!==t)throw h("Incompatible receiver, "+t+" required");return e}}}},5557:(t,r,e)=>{var n=e(6802),o=e(501),i=n("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},119:(t,r,e)=>{var n=e(5489);t.exports=Array.isArray||function(t){return"Array"==n(t)}},6291:(t,r,e)=>{var n=e(5178),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},1814:(t,r,e)=>{var n=e(936),o=e(5061),i=e(6291),c=e(486),u=e(3425),a=e(685),s=function(){},f=[],p=u("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=n(l.exec),y=!l.exec(s),h=function(t){if(!i(t))return!1;try{return p(s,f,t),!0}catch(t){return!1}},g=function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!v(l,a(t))}catch(t){return!0}};g.sham=!0,t.exports=!p||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?g:h},1092:(t,r,e)=>{var n=e(5061),o=e(6291),i=/#|\.prototype\./,c=function(t,r){var e=a[u(t)];return e==f||e!=s&&(o(r)?n(r):!!r)},u=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=c.data={},s=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},860:t=>{t.exports=function(t){return null==t}},2366:(t,r,e)=>{var n=e(6291),o=e(5178),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},13:t=>{t.exports=!1},6448:(t,r,e)=>{var n=e(3425),o=e(6291),i=e(6282),c=e(7558),u=Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,u(t))}},8971:(t,r,e)=>{var n=e(9918),o=e(3927),i=e(4905),c=e(7073),u=e(5557),a=e(4821),s=e(6282),f=e(8437),p=e(6354),l=e(9200),v=TypeError,y=function(t,r){this.stopped=t,this.result=r},h=y.prototype;t.exports=function(t,r,e){var g,b,d,O,S,m,x,j=e&&e.that,w=!(!e||!e.AS_ENTRIES),E=!(!e||!e.IS_RECORD),T=!(!e||!e.IS_ITERATOR),P=!(!e||!e.INTERRUPTED),R=n(r,j),I=function(t){return g&&l(g,"normal",t),new y(!0,t)},A=function(t){return w?(i(t),P?R(t[0],t[1],I):R(t[0],t[1])):P?R(t,I):R(t)};if(E)g=t.iterator;else if(T)g=t;else{if(!(b=p(t)))throw v(c(t)+" is not iterable");if(u(b)){for(d=0,O=a(t);O>d;d++)if((S=A(t[d]))&&s(h,S))return S;return new y(!1)}g=f(t,b)}for(m=E?t.next:g.next;!(x=o(m,g)).done;){try{S=A(x.value)}catch(t){l(g,"throw",t)}if("object"==typeof S&&S&&s(h,S))return S}return new y(!1)}},9200:(t,r,e)=>{var n=e(3927),o=e(4905),i=e(3815);t.exports=function(t,r,e){var c,u;o(t);try{if(!(c=i(t,"return"))){if("throw"===r)throw e;return e}c=n(c,t)}catch(t){u=!0,c=t}if("throw"===r)throw e;if(u)throw c;return o(c),e}},6391:(t,r,e)=>{"use strict";var n=e(1151).IteratorPrototype,o=e(2275),i=e(6034),c=e(606),u=e(501),a=function(){return this};t.exports=function(t,r,e,s){var f=r+" Iterator";return t.prototype=o(n,{next:i(+!s,e)}),c(t,f,!1,!0),u[f]=a,t}},4966:(t,r,e)=>{"use strict";var n=e(9638),o=e(3927),i=e(13),c=e(9873),u=e(6291),a=e(6391),s=e(4320),f=e(2848),p=e(606),l=e(430),v=e(5850),y=e(6802),h=e(501),g=e(1151),b=c.PROPER,d=c.CONFIGURABLE,O=g.IteratorPrototype,S=g.BUGGY_SAFARI_ITERATORS,m=y("iterator"),x="keys",j="values",w="entries",E=function(){return this};t.exports=function(t,r,e,c,y,g,T){a(e,r,c);var P,R,I,A=function(t){if(t===y&&k)return k;if(!S&&t in L)return L[t];switch(t){case x:case j:case w:return function(){return new e(this,t)}}return function(){return new e(this)}},M=r+" Iterator",_=!1,L=t.prototype,D=L[m]||L["@@iterator"]||y&&L[y],k=!S&&D||A(y),N="Array"==r&&L.entries||D;if(N&&(P=s(N.call(new t)))!==Object.prototype&&P.next&&(i||s(P)===O||(f?f(P,O):u(P[m])||v(P,m,E)),p(P,M,!0,!0),i&&(h[M]=E)),b&&y==j&&D&&D.name!==j&&(!i&&d?l(L,"name",j):(_=!0,k=function(){return o(D,this)})),y)if(R={values:A(j),keys:g?k:A(x),entries:A(w)},T)for(I in R)(S||_||!(I in L))&&v(L,I,R[I]);else n({target:r,proto:!0,forced:S||_},R);return i&&!T||L[m]===k||v(L,m,k,{name:y}),h[r]=k,R}},1151:(t,r,e)=>{"use strict";var n,o,i,c=e(5061),u=e(6291),a=e(2366),s=e(2275),f=e(4320),p=e(5850),l=e(6802),v=e(13),y=l("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):h=!0),!a(n)||c((function(){var t={};return n[y].call(t)!==t}))?n={}:v&&(n=s(n)),u(n[y])||p(n,y,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},501:t=>{t.exports={}},4821:(t,r,e)=>{var n=e(4479);t.exports=function(t){return n(t.length)}},7192:(t,r,e)=>{var n=e(5061),o=e(6291),i=e(8382),c=e(1502),u=e(9873).CONFIGURABLE,a=e(685),s=e(684),f=s.enforce,p=s.get,l=Object.defineProperty,v=c&&!n((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),h=t.exports=function(t,r,e){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!i(t,"name")||u&&t.name!==r)&&(c?l(t,"name",{value:r,configurable:!0}):t.name=r),v&&e&&i(e,"arity")&&t.length!==e.arity&&l(t,"length",{value:e.arity});try{e&&i(e,"constructor")&&e.constructor?c&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return i(n,"source")||(n.source=y.join("string"==typeof r?r:"")),t};Function.prototype.toString=h((function(){return o(this)&&p(this).source||a(this)}),"toString")},1367:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},1640:(t,r,e)=>{"use strict";var n=e(1502),o=e(936),i=e(3927),c=e(5061),u=e(9749),a=e(2822),s=e(9265),f=e(7615),p=e(2901),l=Object.assign,v=Object.defineProperty,y=o([].concat);t.exports=!l||c((function(){if(n&&1!==l({b:1},l(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},e=Symbol(),o="abcdefghijklmnopqrst";return t[e]=7,o.split("").forEach((function(t){r[t]=t})),7!=l({},t)[e]||u(l({},r)).join("")!=o}))?function(t,r){for(var e=f(t),o=arguments.length,c=1,l=a.f,v=s.f;o>c;)for(var h,g=p(arguments[c++]),b=l?y(u(g),l(g)):u(g),d=b.length,O=0;d>O;)h=b[O++],n&&!i(v,g,h)||(e[h]=g[h]);return e}:l},2275:(t,r,e)=>{var n,o=e(4905),i=e(6191),c=e(2089),u=e(2499),a=e(2118),s=e(6009),f=e(1695),p=f("IE_PROTO"),l=function(){},v=function(t){return"<script>"+t+"</"+"script>"},y=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},h=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r;h="undefined"!=typeof document?document.domain&&n?y(n):((r=s("iframe")).style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(n);for(var e=c.length;e--;)delete h.prototype[c[e]];return h()};u[p]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(l.prototype=o(t),e=new l,l.prototype=null,e[p]=t):e=h(),void 0===r?e:i.f(e,r)}},6191:(t,r,e)=>{var n=e(1502),o=e(5780),i=e(6462),c=e(4905),u=e(678),a=e(9749);r.f=n&&!o?Object.defineProperties:function(t,r){c(t);for(var e,n=u(r),o=a(r),s=o.length,f=0;s>f;)i.f(t,e=o[f++],n[e]);return t}},6462:(t,r,e)=>{var n=e(1502),o=e(7788),i=e(5780),c=e(4905),u=e(1030),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(c(t),r=u(r),c(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e.writable){var n=f(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:l in e?e.configurable:n.configurable,enumerable:p in e?e.enumerable:n.enumerable,writable:!1})}return s(t,r,e)}:s:function(t,r,e){if(c(t),r=u(r),c(e),o)try{return s(t,r,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},8117:(t,r,e)=>{var n=e(1502),o=e(3927),i=e(9265),c=e(6034),u=e(678),a=e(1030),s=e(8382),f=e(7788),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=u(t),r=a(r),f)try{return p(t,r)}catch(t){}if(s(t,r))return c(!o(i.f,t,r),t[r])}},9219:(t,r,e)=>{var n=e(3855),o=e(2089).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},2822:(t,r)=>{r.f=Object.getOwnPropertySymbols},4320:(t,r,e)=>{var n=e(8382),o=e(6291),i=e(7615),c=e(1695),u=e(149),a=c("IE_PROTO"),s=Object,f=s.prototype;t.exports=u?s.getPrototypeOf:function(t){var r=i(t);if(n(r,a))return r[a];var e=r.constructor;return o(e)&&r instanceof e?e.prototype:r instanceof s?f:null}},6282:(t,r,e)=>{var n=e(936);t.exports=n({}.isPrototypeOf)},3855:(t,r,e)=>{var n=e(936),o=e(8382),i=e(678),c=e(5029).indexOf,u=e(2499),a=n([].push);t.exports=function(t,r){var e,n=i(t),s=0,f=[];for(e in n)!o(u,e)&&o(n,e)&&a(f,e);for(;r.length>s;)o(n,e=r[s++])&&(~c(f,e)||a(f,e));return f}},9749:(t,r,e)=>{var n=e(3855),o=e(2089);t.exports=Object.keys||function(t){return n(t,o)}},9265:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},2848:(t,r,e)=>{var n=e(936),o=e(4905),i=e(9076);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return o(e),i(n),r?t(e,n):e.__proto__=n,e}}():void 0)},379:(t,r,e)=>{var n=e(3927),o=e(6291),i=e(2366),c=TypeError;t.exports=function(t,r){var e,u;if("string"===r&&o(e=t.toString)&&!i(u=n(e,t)))return u;if(o(e=t.valueOf)&&!i(u=n(e,t)))return u;if("string"!==r&&o(e=t.toString)&&!i(u=n(e,t)))return u;throw c("Can't convert object to primitive value")}},2466:(t,r,e)=>{var n=e(3425),o=e(936),i=e(9219),c=e(2822),u=e(4905),a=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(u(t)),e=c.f;return e?a(r,e(t)):r}},4475:(t,r,e)=>{var n=e(860),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},7529:t=>{t.exports=function(t,r){return t===r||t!=t&&r!=r}},606:(t,r,e)=>{var n=e(6462).f,o=e(8382),i=e(6802)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:r})}},1695:(t,r,e)=>{var n=e(6809),o=e(1050),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9982:(t,r,e)=>{var n=e(5001),o=e(1756),i="__core-js_shared__",c=n[i]||o(i,{});t.exports=c},6809:(t,r,e)=>{var n=e(13),o=e(9982);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.26.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},3571:(t,r,e)=>{var n=e(4905),o=e(8209),i=e(860),c=e(6802)("species");t.exports=function(t,r){var e,u=n(t).constructor;return void 0===u||i(e=n(u)[c])?r:o(e)}},5947:(t,r,e)=>{var n=e(2821),o=e(5061);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},6971:(t,r,e)=>{var n=e(9398),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},678:(t,r,e)=>{var n=e(2901),o=e(4475);t.exports=function(t){return n(o(t))}},9398:(t,r,e)=>{var n=e(1367);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},4479:(t,r,e)=>{var n=e(9398),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7615:(t,r,e)=>{var n=e(4475),o=Object;t.exports=function(t){return o(n(t))}},6973:(t,r,e)=>{var n=e(3927),o=e(2366),i=e(6448),c=e(3815),u=e(379),a=e(6802),s=TypeError,f=a("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,a=c(t,f);if(a){if(void 0===r&&(r="default"),e=n(a,t,r),!o(e)||i(e))return e;throw s("Can't convert object to primitive value")}return void 0===r&&(r="number"),u(t,r)}},1030:(t,r,e)=>{var n=e(6973),o=e(6448);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},8171:(t,r,e)=>{var n={};n[e(6802)("toStringTag")]="z",t.exports="[object z]"===String(n)},7073:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},1050:(t,r,e)=>{var n=e(936),o=0,i=Math.random(),c=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},7558:(t,r,e)=>{var n=e(5947);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5780:(t,r,e)=>{var n=e(1502),o=e(5061);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1899:(t,r,e)=>{var n=e(5001),o=e(6291),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},6802:(t,r,e)=>{var n=e(5001),o=e(6809),i=e(8382),c=e(1050),u=e(5947),a=e(7558),s=o("wks"),f=n.Symbol,p=f&&f.for,l=a?f:f&&f.withoutSetter||c;t.exports=function(t){if(!i(s,t)||!u&&"string"!=typeof s[t]){var r="Symbol."+t;u&&i(f,t)?s[t]=f[t]:s[t]=a&&p?p(r):l(r)}return s[t]}},4467:(t,r,e)=>{"use strict";var n=e(9638),o=e(5816),i=e(4933),c=e(7615),u=e(4821),a=e(7021);n({target:"Array",proto:!0},{flatMap:function(t){var r,e=c(this),n=u(e);return i(t),(r=a(e,0)).length=o(r,e,e,n,0,1,t,arguments.length>1?arguments[1]:void 0),r}})},8868:(t,r,e)=>{"use strict";var n=e(678),o=e(5822),i=e(501),c=e(684),u=e(6462).f,a=e(4966),s=e(4562),f=e(13),p=e(1502),l="Array Iterator",v=c.set,y=c.getterFor(l);t.exports=a(Array,"Array",(function(t,r){v(this,{type:l,target:n(t),index:0,kind:r})}),(function(){var t=y(this),r=t.target,e=t.kind,n=t.index++;return!r||n>=r.length?(t.target=void 0,s(void 0,!0)):s("keys"==e?n:"values"==e?r[n]:[n,r[n]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&p&&"values"!==h.name)try{u(h,"name",{value:"values"})}catch(t){}},2937:(t,r,e)=>{"use strict";var n=e(9638),o=e(2040).left,i=e(9020),c=e(2821),u=e(566);n({target:"Array",proto:!0,forced:!i("reduce")||!u&&c>79&&c<83},{reduce:function(t){var r=arguments.length;return o(this,t,r,r>1?arguments[1]:void 0)}})},4903:(t,r,e)=>{e(5822)("flatMap")},6609:(t,r,e)=>{var n=e(9638),o=e(1640);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},903:(t,r,e)=>{"use strict";e(9638)({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:e(7247)})},8705:(t,r,e)=>{"use strict";var n=e(9638),o=e(4905),i=e(9918),c=e(7032),u=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var r=o(this),e=c(r),n=i(t,arguments.length>1?arguments[1]:void 0);return!u(e,(function(t,e,o){if(!n(e,t,r))return o()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},528:(t,r,e)=>{"use strict";var n=e(9638),o=e(3425),i=e(9918),c=e(3927),u=e(4933),a=e(4905),s=e(3571),f=e(7032),p=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var r=a(this),e=f(r),n=i(t,arguments.length>1?arguments[1]:void 0),l=new(s(r,o("Map"))),v=u(l.set);return p(e,(function(t,e){n(e,t,r)&&c(v,l,t,e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),l}})},1609:(t,r,e)=>{"use strict";var n=e(9638),o=e(4905),i=e(9918),c=e(7032),u=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var r=o(this),e=c(r),n=i(t,arguments.length>1?arguments[1]:void 0);return u(e,(function(t,e,o){if(n(e,t,r))return o(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},1263:(t,r,e)=>{"use strict";var n=e(9638),o=e(4905),i=e(9918),c=e(7032),u=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var r=o(this),e=c(r),n=i(t,arguments.length>1?arguments[1]:void 0);return u(e,(function(t,e,o){if(n(e,t,r))return o(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},3983:(t,r,e)=>{"use strict";var n=e(9638),o=e(4905),i=e(7032),c=e(7529),u=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return u(i(o(this)),(function(r,e,n){if(c(e,t))return n()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},1589:(t,r,e)=>{"use strict";var n=e(9638),o=e(4905),i=e(7032),c=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){return c(i(o(this)),(function(r,e,n){if(e===t)return n(r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},917:(t,r,e)=>{"use strict";var n=e(9638),o=e(3425),i=e(9918),c=e(3927),u=e(4933),a=e(4905),s=e(3571),f=e(7032),p=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var r=a(this),e=f(r),n=i(t,arguments.length>1?arguments[1]:void 0),l=new(s(r,o("Map"))),v=u(l.set);return p(e,(function(t,e){c(v,l,n(e,t,r),e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),l}})},5492:(t,r,e)=>{"use strict";var n=e(9638),o=e(3425),i=e(9918),c=e(3927),u=e(4933),a=e(4905),s=e(3571),f=e(7032),p=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var r=a(this),e=f(r),n=i(t,arguments.length>1?arguments[1]:void 0),l=new(s(r,o("Map"))),v=u(l.set);return p(e,(function(t,e){c(v,l,t,n(e,t,r))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),l}})},3942:(t,r,e)=>{"use strict";var n=e(9638),o=e(4933),i=e(4905),c=e(8971);n({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var r=i(this),e=o(r.set),n=arguments.length,u=0;u<n;)c(arguments[u++],e,{that:r,AS_ENTRIES:!0});return r}})},4726:(t,r,e)=>{"use strict";var n=e(9638),o=e(4905),i=e(4933),c=e(7032),u=e(8971),a=TypeError;n({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var r=o(this),e=c(r),n=arguments.length<2,s=n?void 0:arguments[1];if(i(t),u(e,(function(e,o){n?(n=!1,s=o):s=t(s,o,e,r)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),n)throw a("Reduce of empty map with no initial value");return s}})},2646:(t,r,e)=>{"use strict";var n=e(9638),o=e(4905),i=e(9918),c=e(7032),u=e(8971);n({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var r=o(this),e=c(r),n=i(t,arguments.length>1?arguments[1]:void 0);return u(e,(function(t,e,o){if(n(e,t,r))return o()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},8489:(t,r,e)=>{"use strict";var n=e(9638),o=e(3927),i=e(4905),c=e(4933),u=TypeError;n({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,r){var e=i(this),n=c(e.get),a=c(e.has),s=c(e.set),f=arguments.length;c(r);var p=o(a,e,t);if(!p&&f<3)throw u("Updating absent value");var l=p?o(n,e,t):c(f>2?arguments[2]:void 0)(t,e);return o(s,e,t,r(l,t,e)),e}})},4861:(t,r,e)=>{var n=e(5001),o=e(8514),i=e(7234),c=e(8868),u=e(430),a=e(6802),s=a("iterator"),f=a("toStringTag"),p=c.values,l=function(t,r){if(t){if(t[s]!==p)try{u(t,s,p)}catch(r){t[s]=p}if(t[f]||u(t,f,r),o[r])for(var e in c)if(t[e]!==c[e])try{u(t,e,c[e])}catch(r){t[e]=c[e]}}};for(var v in o)l(n[v]&&n[v].prototype,v);l(i,"DOMTokenList")}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n](i,i.exports,e),i.exports}e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";function t(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}e.r(n),e.d(n,{createModel:()=>y,createProxy:()=>a,createStore:()=>O,factory:()=>h,isFunctionModel:()=>i,shallowEqual:()=>f,useSimpleProxy:()=>u});e(8868),e(4861),e(903),e(8705),e(528),e(1263),e(1609),e(3983),e(1589),e(917),e(5492),e(3942),e(4726),e(2646),e(8489),e(4467),e(4903),e(6609),e(2937);function r(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function o(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(r){t(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function i(t){if("function"!=typeof t)return!1;const{prototype:r}=t;return null==r||function(t){if(Object.getPrototypeOf(t)!==Object.prototype)return!1;const r=Object.getOwnPropertyNames(t);return!r.length||1===r.length&&"constructor"===r[0]}(r)}function c(t,r,e,n){const i=Object.getOwnPropertyDescriptors(e);return Object.keys(i).map((e=>[e,{get:()=>n.get?n.get(t,e,r):t[e],set:o=>{if(!n.set)return void(t[e]=o);if(!n.set(t,e,o,r))throw new Error("".concat(e," in proxy target is not mutable"))}}])).reduce(((t,r)=>{let[e,n]=r;return o(o({},t),{},{[e]:n})}),{})}const u=(t,r)=>{const e={},n=c(t,e,t,r),i=c(t,e,Object.getPrototypeOf(t),r);return Object.defineProperties(e,o(o({},i),n)),e},a=(t,r)=>"function"!=typeof Proxy?u(t,r):new Proxy(t,r);function s(t){return t&&"object"==typeof t}function f(t,r){if(Object.is(t,r))return!0;if(!s(t)||!s(r))return!1;const e=Object.keys(t),n=Object.keys(r);if(e.length!==n.length)return!1;const o=t,i=r;if(e.some((t=>!Object.prototype.hasOwnProperty.call(i,t))))return!1;return!n.some((t=>{const r=i[t],e=o[t];return!Object.is(r,e)}))}function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function l(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){t(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function v(t){return function(r){const{dispatches:e}=t;[...e].forEach((t=>{t(r)}))}}function y(t,r){const e=t(r),n={current:e,reducer:t,dispatch:null,dispatches:[],cacheMethods:{},state:r,cacheState:null};function o(t,r){const{state:e}=n,o=!(!r||!r.isDefault),i=!(!r||!r.ignoreDispatch);if(o&&n.cacheState)return;const c=r?r.state:e;n.reducer=t,n.state=c,n.cacheState=r&&r.cache?{state:r.state}:n.cacheState,n.current=t(n.state),e===n.state||o||i||v(n)({state:n.state,type:""})}return{agent:a(e,{get(t,r){const e=n.current[r];return n.current.hasOwnProperty(r)&&"function"==typeof e?function(t,r){if(t.cacheMethods[r])return t.cacheMethods[r];const e=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];function i(r){v(t)(r)}const c=(0,t.current[r])(...n),{reducer:u}=t;return t.current=u(c),t.state=c,t.cacheState={state:c},i({type:r,state:c}),c};return t.cacheMethods[r]=e,e}(n,r):e}}),getCacheState:()=>n.cacheState,getState:()=>n.state,update:o,updateState(t){o(n.reducer,{state:t,cache:!0})},connect(t){const{dispatches:r}=n;!r.some((r=>r===t))&&t&&r.push(t)},disconnect(t){if(!t)return void(n.dispatches=[]);const{dispatches:r}=n,e=r.indexOf(t);e<0||r.splice(e,1)}}}function h(t,r){const e=function(r){return t(r)};return e.creation=function(){return y(e,r)},e.pipe=function(t){const r=function(r){return t(r)};return r.getSourceFrom=function(){return e},r},e}const g="@@airma/react-state/factory/mutation/source";function b(t,r){const e=t[g];return null==e?r?t:null:b(e,!0)}function d(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("function"==typeof t&&"function"==typeof t.creation)return[{key:r.join("."),keys:r,factory:t,connection:t.creation()}];if(!t||"object"!=typeof t)return[];const e=[],n=t,o=Object.keys(n);return o.forEach((t=>{if(t===g)return;const o=d(n[t],[...r,t]);e.push(...o)})),e}function O(t){const r=b(t),e=r||t;function n(t){const r=t.map((t=>{let{connection:r}=t;return r})),e=new Map(t.flatMap((t=>{let{factory:r,sourceFactory:e,connection:n}=t;return[[r,n],[e,n]]})));return{collections:t,connections:r,instances:e}}function o(t,r){const e=new Map(r.map((t=>{let{key:r,connection:e,factory:n}=t;return[r,{connection:e,factory:n}]}))),n=new Map(t.map((t=>{let{key:r,connection:e,factory:n}=t;return[r,{connection:e,factory:n}]}))),o=r.filter((t=>{let{key:r}=t;return!n.has(r)})),i=t.filter((t=>{let{key:r}=t;return!e.has(r)})),c=t.map((t=>{const{key:r,connection:n}=t,o=e.get(r);if(!o)return;const i=o.connection,c=null==n.getCacheState()?i.getState():n.getState();return n.update(o.factory,{state:c}),l(l({},t),{},{factory:o.factory,sourceFactory:t.factory})})).filter((t=>!!t));return i.forEach((t=>{let{connection:r}=t;return r.disconnect()})),[...o,...c]}const i=d(t),c=r?d(r):i,u=n(r?o(c,i):c),a={update(r){if(r===t)return l({},a);const e=b(r),i=e?o(c,d(e)):c,s=n(o(i,d(r)));return Object.assign(u,l({},s)),l({},a)},get:t=>u.instances.get(t),equal:t=>t===e,destroy(){u.connections.forEach((t=>t.disconnect()))}};return l({},a)}})(),n})())); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@airma/core"]=e():t["@airma/core"]=e()}(self,(function(){return function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function u(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,c=[],u=!0,i=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(c.push(r.value),!e||c.length!==e);u=!0);}catch(t){i=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(i)throw o}}return c}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,n,r){var o=Object.keys(n),c={};return o.forEach((function(n){c[n]={get:function(){return r.get?r.get(t,n,e):t[n]},set:function(o){if(r.set){if(!r.set(t,n,o,e))throw new Error("".concat(n," in proxy target is not mutable"))}else t[n]=o}}})),c}t.r(e),t.d(e,{createModel:function(){return O},createProxy:function(){return y},createStore:function(){return j},factory:function(){return g},shallowEqual:function(){return p}});var y=function(t,e){return"function"!=typeof Proxy?function(t,e){var n={},r=s(t,n,t,e),o=s(t,n,Object.getPrototypeOf(t),e);return Object.defineProperties(n,f(f({},o),r)),n}(t,e):new Proxy(t,e)};function l(t){return t&&"object"===r(t)}function p(t,e){if(Object.is(t,e))return!0;if(!l(t)||!l(e))return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;var o=t,c=e;return!n.some((function(t){return!Object.prototype.hasOwnProperty.call(c,t)}))&&!r.some((function(t){var e=c[t],n=o[t];return!Object.is(e,n)}))}function b(t){var e={};return t.forEach((function(t){var n=i(t,2),r=n[0],o=n[1];e[r]=o})),{get:function(t){return e[t]}}}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function v(t){return function(e){u(t.dispatches).forEach((function(t){t(e)}))}}function O(t,e){var n=t(e),r={current:n,reducer:t,dispatch:null,dispatches:[],cacheMethods:{},state:e,cacheState:null};function o(t,e){var n=r.state,o=!(!e||!e.isDefault),c=!(!e||!e.ignoreDispatch);if(!o||!r.cacheState){var u=e?e.state:n;r.reducer=t,r.state=u,r.cacheState=e&&e.cache?{state:e.state}:r.cacheState,r.current=t(r.state),n===r.state||o||c||v(r)({state:r.state,type:""})}}return{agent:y(n,{get:function(t,e){var n=r.current[e];return Object.prototype.hasOwnProperty.call(r.current,e)&&"function"==typeof n?function(t,e){if(t.cacheMethods[e])return t.cacheMethods[e];var n=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];function c(e){v(t)(e)}var u=t.current[e].apply(void 0,r),i=t.reducer;return t.current=i(u),t.state=u,t.cacheState={state:u},c({type:e,state:u}),u};return t.cacheMethods[e]=n,n}(r,e):n}}),getCacheState:function(){return r.cacheState},getState:function(){return r.state},update:o,updateState:function(t){o(r.reducer,{state:t,cache:!0})},connect:function(t){var e=r.dispatches;!t||e.indexOf(t)>=0||e.push(t)},disconnect:function(t){if(t){var e=r.dispatches,n=e.indexOf(t);n<0||e.splice(n,1)}else r.dispatches=[]}}}function g(t,e){var n=function(e){return t(e)};return n.creation=function(){return O(n,e)},n.pipe=function(t){var e=function(e){return t(e)};return e.getSourceFrom=function(){return n},e},n}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("function"==typeof t&&"function"==typeof t.creation)return[{key:e.join("."),keys:e,factory:t,connection:t.creation()}];if(!t||"object"!==r(t))return[];var n=[],o=t,c=Object.keys(o);return c.forEach((function(t){var r=m(o[t],e.concat(t));n.push.apply(n,u(r))})),n}function j(t){var e=t;function n(t){var e=t.map((function(t){return t.connection})),n=function(t){return{get:function(e){var n=t.find((function(t){return t.factory===e||t.sourceFactory===e}));return n?n.connection:void 0}}}(t);return{collections:t,connections:e,instances:n}}var r=m(t),o=n(r),c={update:function(e){if(e===t)return h({},c);var i=m(e),a=n(function(t,e){var n=b(e.map((function(t){return[t.key,{connection:t.connection,factory:t.factory}]}))),r=b(t.map((function(t){return[t.key,{connection:t.connection,factory:t.factory}]}))),o=e.filter((function(t){var e=t.key;return!r.get(e)})),c=t.filter((function(t){var e=t.key;return!n.get(e)})),i=t.map((function(t){var e=t.key,r=t.connection,o=n.get(e);if(o){var c=o.connection,u=null==r.getCacheState()?c.getState():r.getState();return r.update(o.factory,{state:u}),h(h({},t),{},{factory:o.factory,sourceFactory:t.factory})}})).filter((function(t){return!!t}));return c.forEach((function(t){return t.connection.disconnect()})),[].concat(u(o),u(i))}(r,i)),f=a.instances,s=a.connections,y=a.collections;return o.instances=f,o.connections=s,o.collections=y,h({},c)},get:function(t){return o.instances.get(t)},equal:function(t){return t===e},destroy:function(){o.connections.forEach((function(t){return t.disconnect()}))}};return h({},c)}return e}()})); |
@@ -75,7 +75,2 @@ export declare type Action = { | ||
export declare function useSimpleProxy<T extends Record<string, unknown>>( | ||
target: T, | ||
handler: ProxyHandler<T> | ||
): T; | ||
export declare function createProxy<T extends Record<string, any>>( | ||
@@ -86,6 +81,2 @@ target: T, | ||
export declare function isFunctionModel<S, T extends AirModel<S>>( | ||
model: T | { new (): T } | ((state: S) => T) | ||
): model is (state: S) => T; | ||
export declare function shallowEqual<R>(prev: R, current: R): boolean; |
{ | ||
"scripts": { | ||
"build": "webpack" | ||
"build": "webpack", | ||
"analyze": "webpack --config webpack.analyze.js" | ||
}, | ||
"private": false, | ||
"name": "@airma/core", | ||
"version": "16.0.2", | ||
"version": "16.1.0-beta", | ||
"description": "This is the core for agent-reducer and airma", | ||
@@ -26,3 +27,3 @@ "repository": { | ||
"prettier": "2.3.2", | ||
"typescript": "4.2.2", | ||
"typescript": "4.9.4", | ||
"esbuild": "^0.16.6" | ||
@@ -29,0 +30,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
11627
67
2