vis-data 7.1.0 → 7.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/data-interface.d.ts +1 -28
- package/declarations/data-interface.d.ts.map +1 -1
- package/declarations/data-pipe.d.ts +5 -9
- package/declarations/data-pipe.d.ts.map +1 -1
- package/declarations/data-set-check.d.ts +0 -1
- package/declarations/data-set-check.d.ts.map +1 -1
- package/declarations/data-set-part.d.ts +1 -1
- package/declarations/data-set-part.d.ts.map +1 -1
- package/declarations/data-set.d.ts +4 -17
- package/declarations/data-set.d.ts.map +1 -1
- package/declarations/data-stream.d.ts +1 -17
- package/declarations/data-stream.d.ts.map +1 -1
- package/declarations/data-view-check.d.ts +0 -1
- package/declarations/data-view-check.d.ts.map +1 -1
- package/declarations/data-view.d.ts +4 -2
- package/declarations/data-view.d.ts.map +1 -1
- package/declarations/queue.d.ts +3 -2
- package/declarations/queue.d.ts.map +1 -1
- package/dist/esm.js +7435 -3483
- package/dist/esm.js.map +1 -1
- package/dist/umd.js +11969 -8016
- package/dist/umd.js.map +1 -1
- package/esnext/esm/vis-data.js +162 -266
- package/esnext/esm/vis-data.js.map +1 -1
- package/esnext/esm/vis-data.min.js +3 -17
- package/esnext/esm/vis-data.min.js.map +1 -1
- package/esnext/umd/vis-data.js +2009 -2115
- package/esnext/umd/vis-data.js.map +1 -1
- package/esnext/umd/vis-data.min.js +3 -18
- package/esnext/umd/vis-data.min.js.map +1 -1
- package/package.json +75 -27
- package/peer/esm/vis-data.js +7428 -3475
- package/peer/esm/vis-data.js.map +1 -1
- package/peer/esm/vis-data.min.js +8 -41
- package/peer/esm/vis-data.min.js.map +1 -1
- package/peer/umd/vis-data.js +11928 -7975
- package/peer/umd/vis-data.js.map +1 -1
- package/peer/umd/vis-data.min.js +9 -42
- package/peer/umd/vis-data.min.js.map +1 -1
- package/standalone/esm/vis-data.js +7428 -3475
- package/standalone/esm/vis-data.js.map +1 -1
- package/standalone/esm/vis-data.min.js +8 -41
- package/standalone/esm/vis-data.min.js.map +1 -1
- package/standalone/umd/vis-data.js +11928 -7975
- package/standalone/umd/vis-data.js.map +1 -1
- package/standalone/umd/vis-data.min.js +9 -42
- package/standalone/umd/vis-data.min.js.map +1 -1
package/peer/esm/vis-data.min.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
|
|
6
6
|
*
|
|
7
|
-
* @version 7.1.
|
|
8
|
-
* @date
|
|
7
|
+
* @version 7.1.3
|
|
8
|
+
* @date 2022-03-02T13:02:54.265Z
|
|
9
9
|
*
|
|
10
10
|
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
11
11
|
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
@@ -23,44 +23,11 @@
|
|
|
23
23
|
*
|
|
24
24
|
* vis.js may be distributed under either license.
|
|
25
25
|
*/
|
|
26
|
-
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e,r){return t(r={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}var r=function(t){return t&&t.Math==Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=function(t){return"object"==typeof t?null!==t:"function"==typeof t},u=n.document,c=a(u)&&a(u.createElement),f=function(t){return c?u.createElement(t):{}},s=!i&&!o((function(){return 7!=Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a})),l=function(t){if(!a(t))throw TypeError(String(t)+" is not an object");return t},h=function(t,e){if(!a(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!a(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!a(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!a(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},v=Object.defineProperty,p={f:i?v:function(t,e,r){if(l(t),e=h(e,!0),l(r),s)try{return v(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},y=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d=i?function(t,e,r){return p.f(t,e,y(1,r))}:function(t,e,r){return t[e]=r,t},g=function(t,e,r,n){n&&n.enumerable?t[e]=r:d(t,e,r)},m=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:g(t,n,e[n],r);return t},b={},w={}.hasOwnProperty,O=function(t,e){return w.call(t,e)},x=0,k=Math.random(),S=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++x+k).toString(36)},j=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),A=e((function(t){var e=p.f,r=S("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,r,{value:{objectID:"O"+ ++n,weakData:{}}})},u=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!O(t,r)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!O(t,r)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return j&&u.REQUIRED&&o(t)&&!O(t,r)&&i(t),t}};b[r]=!0})),E={}.propertyIsEnumerable,_=Object.getOwnPropertyDescriptor,I={f:_&&!E.call({1:2},1)?function(t){var e=_(this,t);return!!e&&e.enumerable}:E},T={}.toString,P=function(t){return T.call(t).slice(8,-1)},D="".split,L=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==P(t)?D.call(t,""):Object(t)}:Object,M=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},C=function(t){return L(M(t))},F=Object.getOwnPropertyDescriptor,R={f:i?F:function(t,e){if(t=C(t),e=h(e,!0),s)try{return F(t,e)}catch(t){}if(O(t,e))return y(!I.f.call(t,e),t[e])}},N=/#|\.prototype\./,z=function(t,e){var r=U[G(t)];return r==V||r!=q&&("function"==typeof e?o(e):!!e)},G=z.normalize=function(t){return String(t).replace(N,".").toLowerCase()},U=z.data={},q=z.NATIVE="N",V=z.POLYFILL="P",W=z,J={},$=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},B=function(t,e,r){if($(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},K=R.f,Q=function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},Y=function(t,e){var r,o,i,a,u,c,f,s,l=t.target,h=t.global,v=t.stat,p=t.proto,y=h?n:v?n[l]:(n[l]||{}).prototype,g=h?J:J[l]||(J[l]={}),m=g.prototype;for(i in e)r=!W(h?i:l+(v?".":"#")+i,t.forced)&&y&&O(y,i),u=g[i],r&&(c=t.noTargetGet?(s=K(y,i))&&s.value:y[i]),a=r&&c?c:e[i],r&&typeof u==typeof a||(f=t.bind&&r?B(a,n):t.wrap&&r?Q(a):p&&"function"==typeof a?B(Function.call,a):a,(t.sham||a&&a.sham||u&&u.sham)&&d(f,"sham",!0),g[i]=f,p&&(O(J,o=l+"Prototype")||d(J,o,{}),J[o][i]=a,t.real&&m&&!m[i]&&d(m,i,a)))},H=n["__core-js_shared__"]||function(t,e){try{d(n,t,e)}catch(r){n[t]=e}return e}("__core-js_shared__",{}),X=e((function(t){(t.exports=function(t,e){return H[t]||(H[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Z=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,et=X("wks"),rt=n.Symbol,nt=tt?rt:rt&&rt.withoutSetter||S,ot=function(t){return O(et,t)||(Z&&O(rt,t)?et[t]=rt[t]:et[t]=nt("Symbol."+t)),et[t]},it={},at=ot("iterator"),ut=Array.prototype,ct=function(t){return void 0!==t&&(it.Array===t||ut[at]===t)},ft=Math.ceil,st=Math.floor,lt=function(t){return isNaN(t=+t)?0:(t>0?st:ft)(t)},ht=Math.min,vt=function(t){return t>0?ht(lt(t),9007199254740991):0},pt={};pt[ot("toStringTag")]="z";var yt="[object z]"===String(pt),dt=ot("toStringTag"),gt="Arguments"==P(function(){return arguments}()),mt=yt?P:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),dt))?r:gt?P(e):"Object"==(n=P(e))&&"function"==typeof e.callee?"Arguments":n},bt=ot("iterator"),wt=function(t){if(null!=t)return t[bt]||t["@@iterator"]||it[mt(t)]},Ot=function(t,e,r,n){try{return n?e(l(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&l(o.call(t)),e}},xt=e((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,r,n,o,i){var a,u,c,f,s,h,v,p=B(r,n,o?2:1);if(i)a=t;else{if("function"!=typeof(u=wt(t)))throw TypeError("Target is not iterable");if(ct(u)){for(c=0,f=vt(t.length);f>c;c++)if((s=o?p(l(v=t[c])[0],v[1]):p(t[c]))&&s instanceof e)return s;return new e(!1)}a=u.call(t)}for(h=a.next;!(v=h.call(a)).done;)if("object"==typeof(s=Ot(a,p,v.value,o))&&s&&s instanceof e)return s;return new e(!1)}).stop=function(t){return new e(!0,t)}})),kt=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},St=yt?{}.toString:function(){return"[object "+mt(this)+"]"},jt=p.f,At=ot("toStringTag"),Et=function(t,e,r,n){if(t){var o=r?t:t.prototype;O(o,At)||jt(o,At,{configurable:!0,value:e}),n&&!yt&&d(o,"toString",St)}},_t=function(t){return Object(M(t))},It=Array.isArray||function(t){return"Array"==P(t)},Tt=ot("species"),Pt=function(t,e){var r;return It(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!It(r.prototype)?a(r)&&null===(r=r[Tt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},Dt=[].push,Lt=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=5==t||i;return function(u,c,f,s){for(var l,h,v=_t(u),p=L(v),y=B(c,f,3),d=vt(p.length),g=0,m=s||Pt,b=e?m(u,d):r?m(u,0):void 0;d>g;g++)if((a||g in p)&&(h=y(l=p[g],g,v),t))if(e)b[g]=h;else if(h)switch(t){case 3:return!0;case 5:return l;case 6:return g;case 2:Dt.call(b,l)}else if(o)return!1;return i?-1:n||o?o:b}},Mt={forEach:Lt(0),map:Lt(1),filter:Lt(2),some:Lt(3),every:Lt(4),find:Lt(5),findIndex:Lt(6)},Ct=Function.toString;"function"!=typeof H.inspectSource&&(H.inspectSource=function(t){return Ct.call(t)});var Ft,Rt,Nt,zt=H.inspectSource,Gt=n.WeakMap,Ut="function"==typeof Gt&&/native code/.test(zt(Gt)),qt=X("keys"),Vt=function(t){return qt[t]||(qt[t]=S(t))},Wt=n.WeakMap;if(Ut){var Jt=new Wt,$t=Jt.get,Bt=Jt.has,Kt=Jt.set;Ft=function(t,e){return Kt.call(Jt,t,e),e},Rt=function(t){return $t.call(Jt,t)||{}},Nt=function(t){return Bt.call(Jt,t)}}else{var Qt=Vt("state");b[Qt]=!0,Ft=function(t,e){return d(t,Qt,e),e},Rt=function(t){return O(t,Qt)?t[Qt]:{}},Nt=function(t){return O(t,Qt)}}var Yt={set:Ft,get:Rt,has:Nt,enforce:function(t){return Nt(t)?Rt(t):Ft(t,{})},getterFor:function(t){return function(e){var r;if(!a(e)||(r=Rt(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},Ht=p.f,Xt=Mt.forEach,Zt=Yt.set,te=Yt.getterFor,ee=function(t,e,r){var u,c=-1!==t.indexOf("Map"),f=-1!==t.indexOf("Weak"),s=c?"set":"add",l=n[t],h=l&&l.prototype,v={};if(i&&"function"==typeof l&&(f||h.forEach&&!o((function(){(new l).entries().next()})))){u=e((function(e,r){Zt(kt(e,u,t),{type:t,collection:new l}),null!=r&&xt(r,e[s],e,c)}));var p=te(t);Xt(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in h)||f&&"clear"==t||d(u.prototype,t,(function(r,n){var o=p(this).collection;if(!e&&f&&!a(r))return"get"==t&&void 0;var i=o[t](0===r?0:r,n);return e?this:i}))})),f||Ht(u.prototype,"size",{configurable:!0,get:function(){return p(this).collection.size}})}else u=r.getConstructor(e,t,c,s),A.REQUIRED=!0;return Et(u,t,!1,!0),v[t]=u,Y({global:!0,forced:!0},v),f||r.setStrong(u,t,c),u},re=A.getWeakData,ne=Yt.set,oe=Yt.getterFor,ie=Mt.find,ae=Mt.findIndex,ue=0,ce=function(t){return t.frozen||(t.frozen=new fe)},fe=function(){this.entries=[]},se=function(t,e){return ie(t.entries,(function(t){return t[0]===e}))};fe.prototype={get:function(t){var e=se(this,t);if(e)return e[1]},has:function(t){return!!se(this,t)},set:function(t,e){var r=se(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=ae(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}};var le,he,ve,pe={getConstructor:function(t,e,r,n){var o=t((function(t,i){kt(t,o,e),ne(t,{type:e,id:ue++,frozen:void 0}),null!=i&&xt(i,t[n],t,r)})),i=oe(e),u=function(t,e,r){var n=i(t),o=re(l(e),!0);return!0===o?ce(n).set(e,r):o[n.id]=r,t};return m(o.prototype,{delete:function(t){var e=i(this);if(!a(t))return!1;var r=re(t);return!0===r?ce(e).delete(t):r&&O(r,e.id)&&delete r[e.id]},has:function(t){var e=i(this);if(!a(t))return!1;var r=re(t);return!0===r?ce(e).has(t):r&&O(r,e.id)}}),m(o.prototype,r?{get:function(t){var e=i(this);if(a(t)){var r=re(t);return!0===r?ce(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return u(this,t,e)}}:{add:function(t){return u(this,t,!0)}}),o}},ye=(e((function(t){var e,r=Yt.enforce,o=!n.ActiveXObject&&"ActiveXObject"in n,i=Object.isExtensible,u=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},c=t.exports=ee("WeakMap",u,pe);if(Ut&&o){e=pe.getConstructor(u,"WeakMap",!0),A.REQUIRED=!0;var f=c.prototype,s=f.delete,l=f.has,h=f.get,v=f.set;m(f,{delete:function(t){if(a(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),s.call(this,t)||n.frozen.delete(t)}return s.call(this,t)},has:function(t){if(a(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),l.call(this,t)||n.frozen.has(t)}return l.call(this,t)},get:function(t){if(a(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),l.call(this,t)?h.call(this,t):n.frozen.get(t)}return h.call(this,t)},set:function(t,n){if(a(t)&&!i(t)){var o=r(this);o.frozen||(o.frozen=new e),l.call(this,t)?v.call(this,t,n):o.frozen.set(t,n)}else v.call(this,t,n);return this}})}})),!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))),de=Vt("IE_PROTO"),ge=Object.prototype,me=ye?Object.getPrototypeOf:function(t){return t=_t(t),O(t,de)?t[de]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?ge:null},be=(ot("iterator"),!1);[].keys&&("next"in(ve=[].keys())?(he=me(me(ve)))!==Object.prototype&&(le=he):be=!0),null==le&&(le={});var we,Oe={IteratorPrototype:le,BUGGY_SAFARI_ITERATORS:be},xe=Math.max,ke=Math.min,Se=function(t,e){var r=lt(t);return r<0?xe(r+e,0):ke(r,e)},je=function(t){return function(e,r,n){var o,i=C(e),a=vt(i.length),u=Se(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Ae={includes:je(!0),indexOf:je(!1)},Ee=Ae.indexOf,_e=function(t,e){var r,n=C(t),o=0,i=[];for(r in n)!O(b,r)&&O(n,r)&&i.push(r);for(;e.length>o;)O(n,r=e[o++])&&(~Ee(i,r)||i.push(r));return i},Ie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Te=Object.keys||function(t){return _e(t,Ie)},Pe=i?Object.defineProperties:function(t,e){l(t);for(var r,n=Te(e),o=n.length,i=0;o>i;)p.f(t,r=n[i++],e[r]);return t},De=function(t){return"function"==typeof t?t:void 0},Le=function(t,e){return arguments.length<2?De(J[t])||De(n[t]):J[t]&&J[t][e]||n[t]&&n[t][e]},Me=Le("document","documentElement"),Ce=Vt("IE_PROTO"),Fe=function(){},Re=function(t){return"<script>"+t+"<\/script>"},Ne=function(){try{we=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Ne=we?function(t){t.write(Re("")),t.close();var e=t.parentWindow.Object;return t=null,e}(we):((e=f("iframe")).style.display="none",Me.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Re("document.F=Object")),t.close(),t.F);for(var r=Ie.length;r--;)delete Ne.prototype[Ie[r]];return Ne()};b[Ce]=!0;var ze=Object.create||function(t,e){var r;return null!==t?(Fe.prototype=l(t),r=new Fe,Fe.prototype=null,r[Ce]=t):r=Ne(),void 0===e?r:Pe(r,e)},Ge=Oe.IteratorPrototype,Ue=function(){return this},qe=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return l(r),function(t){if(!a(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Ve=Oe.IteratorPrototype,We=Oe.BUGGY_SAFARI_ITERATORS,Je=ot("iterator"),$e=function(){return this},Be=function(t,e,r,n,o,i,a){!function(t,e,r){var n=e+" Iterator";t.prototype=ze(Ge,{next:y(1,r)}),Et(t,n,!1,!0),it[n]=Ue}(r,e,n);var u,c,f,s=function(t){if(t===o&&m)return m;if(!We&&t in v)return v[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,v=t.prototype,p=v[Je]||v["@@iterator"]||o&&v[o],m=!We&&p||s(o),b="Array"==e&&v.entries||p;if(b&&(u=me(b.call(new t)),Ve!==Object.prototype&&u.next&&(Et(u,l,!0,!0),it[l]=$e)),"values"==o&&p&&"values"!==p.name&&(h=!0,m=function(){return p.call(this)}),a&&v[Je]!==m&&d(v,Je,m),it[e]=m,o)if(c={values:s("values"),keys:i?m:s("keys"),entries:s("entries")},a)for(f in c)(We||h||!(f in v))&&g(v,f,c[f]);else Y({target:e,proto:!0,forced:We||h},c);return c},Ke=Yt.set,Qe=Yt.getterFor("Array Iterator");Be(Array,"Array",(function(t,e){Ke(this,{type:"Array Iterator",target:C(t),index:0,kind:e})}),(function(){var t=Qe(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");it.Arguments=it.Array;var Ye=ot("toStringTag");for(var He in{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}){var Xe=n[He],Ze=Xe&&Xe.prototype;Ze&&mt(Ze)!==Ye&&d(Ze,Ye,He),it[He]=it.Array}var tr=J.WeakMap,er=function(t,e,r,n,o,i,a,u){for(var c,f=o,s=0,l=!!a&&B(a,u,3);s<n;){if(s in r){if(c=l?l(r[s],s,e):r[s],i>0&&It(c))f=er(t,e,c,vt(c.length),f,i-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[f]=c}f++}s++}return f},rr=er;Y({target:"Array",proto:!0},{flatMap:function(t){var e,r=_t(this),n=vt(r.length);return $(t),(e=Pt(r,0)).length=rr(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var nr,or,ir=function(t){return J[t+"Prototype"]},ar=ir("Array").flatMap,ur=Array.prototype,cr=function(t){var e=t.flatMap;return t===ur||t instanceof Array&&e===ur.flatMap?ar:e},fr=Le("navigator","userAgent")||"",sr=n.process,lr=sr&&sr.versions,hr=lr&&lr.v8;hr?or=(nr=hr.split("."))[0]+nr[1]:fr&&(!(nr=fr.match(/Edge\/(\d+)/))||nr[1]>=74)&&(nr=fr.match(/Chrome\/(\d+)/))&&(or=nr[1]);var vr=or&&+or,pr=ot("species"),yr=function(t){return vr>=51||!o((function(){var e=[];return(e.constructor={})[pr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},dr=Object.defineProperty,gr={},mr=function(t){throw t},br=function(t,e){if(O(gr,t))return gr[t];e||(e={});var r=[][t],n=!!O(e,"ACCESSORS")&&e.ACCESSORS,a=O(e,0)?e[0]:mr,u=O(e,1)?e[1]:void 0;return gr[t]=!!r&&!o((function(){if(n&&!i)return!0;var t={length:-1};n?dr(t,1,{enumerable:!0,get:mr}):t[1]=1,r.call(t,a,u)}))},wr=Mt.map,Or=yr("map"),xr=br("map");Y({target:"Array",proto:!0,forced:!Or||!xr},{map:function(t){return wr(this,t,arguments.length>1?arguments[1]:void 0)}});var kr=ir("Array").map,Sr=Array.prototype,jr=function(t){var e=t.map;return t===Sr||t instanceof Array&&e===Sr.map?kr:e},Ar=Mt.filter,Er=yr("filter"),_r=br("filter");Y({target:"Array",proto:!0,forced:!Er||!_r},{filter:function(t){return Ar(this,t,arguments.length>1?arguments[1]:void 0)}});var Ir=ir("Array").filter,Tr=Array.prototype,Pr=function(t){var e=t.filter;return t===Tr||t instanceof Array&&e===Tr.filter?Ir:e},Dr=function(t){return function(e,r,n,o){$(r);var i=_t(e),a=L(i),u=vt(i.length),c=t?u-1:0,f=t?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(o=r(o,a[c],c,i));return o}},Lr=function(t,e){var r=[][t];return!!r&&o((function(){r.call(null,e||function(){throw 1},1)}))},Mr={left:Dr(!1),right:Dr(!0)}.left,Cr=Lr("reduce"),Fr=br("reduce",{1:0});Y({target:"Array",proto:!0,forced:!Cr||!Fr},{reduce:function(t){return Mr(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Rr=ir("Array").reduce,Nr=Array.prototype,zr=function(t){var e=t.reduce;return t===Nr||t instanceof Array&&e===Nr.reduce?Rr:e},Gr=[].slice,Ur={},qr=function(t,e,r){if(!(e in Ur)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Ur[e]=Function("C,a","return new C("+n.join(",")+")")}return Ur[e](t,r)},Vr=Function.bind||function(t){var e=$(this),r=Gr.call(arguments,1),n=function(){var o=r.concat(Gr.call(arguments));return this instanceof n?qr(e,o.length,o):e.apply(t,o)};return a(e.prototype)&&(n.prototype=e.prototype),n};Y({target:"Function",proto:!0},{bind:Vr});var Wr=ir("Function").bind,Jr=Function.prototype,$r=function(t){var e=t.bind;return t===Jr||t instanceof Function&&e===Jr.bind?Wr:e};var Br=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Y({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:p.f});var Kr=e((function(t){var e=J.Object,r=t.exports=function(t,r,n){return e.defineProperty(t,r,n)};e.defineProperty.sham&&(r.sham=!0)})),Qr=Kr;function Yr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Qr(t,n.key,n)}}var Hr,Xr=function(t,e,r){return e&&Yr(t.prototype,e),r&&Yr(t,r),t};
|
|
27
|
-
/*!
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
31
|
-
purpose with or without fee is hereby granted.
|
|
32
|
-
|
|
33
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
34
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
35
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
36
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
37
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
38
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
39
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
40
|
-
***************************************************************************** */function Zr(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function tn(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}function en(t){return new nn(t)}var rn=function(){function t(e,r,n){var o,i,a;Br(this,t),this._source=e,this._transformers=r,this._target=n,this._listeners={add:$r(o=this._add).call(o,this),remove:$r(i=this._remove).call(i,this),update:$r(a=this._update).call(a,this)}}return Xr(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return zr(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),nn=function(){function t(e){Br(this,t),this._source=e,Hr.set(this,[])}return Xr(t,[{key:"filter",value:function(t){return Zr(this,Hr).push((function(e){return Pr(e).call(e,t)})),this}},{key:"map",value:function(t){return Zr(this,Hr).push((function(e){return jr(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return Zr(this,Hr).push((function(e){return cr(e).call(e,t)})),this}},{key:"to",value:function(t){return new rn(this._source,Zr(this,Hr),t)}}]),t}();Hr=new tr;var on=Kr;Y({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:Pe});var an=e((function(t){var e=J.Object,r=t.exports=function(t,r){return e.defineProperties(t,r)};e.defineProperties.sham&&(r.sham=!0)})),un=Ie.concat("length","prototype"),cn={f:Object.getOwnPropertyNames||function(t){return _e(t,un)}},fn={f:Object.getOwnPropertySymbols},sn=Le("Reflect","ownKeys")||function(t){var e=cn.f(l(t)),r=fn.f;return r?e.concat(r(t)):e},ln=function(t,e,r){var n=h(e);n in t?p.f(t,n,y(0,r)):t[n]=r};Y({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=C(t),o=R.f,i=sn(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&ln(a,e,r);return a}});var hn=J.Object.getOwnPropertyDescriptors,vn=R.f,pn=o((function(){vn(1)}));Y({target:"Object",stat:!0,forced:!i||pn,sham:!i},{getOwnPropertyDescriptor:function(t,e){return vn(C(t),e)}});var yn=e((function(t){var e=J.Object,r=t.exports=function(t,r){return e.getOwnPropertyDescriptor(t,r)};e.getOwnPropertyDescriptor.sham&&(r.sham=!0)})),dn=cn.f,gn={}.toString,mn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bn={f:function(t){return mn&&"[object Window]"==gn.call(t)?function(t){try{return dn(t)}catch(t){return mn.slice()}}(t):dn(C(t))}},wn={f:ot},On=p.f,xn=function(t){var e=J.Symbol||(J.Symbol={});O(e,t)||On(e,t,{value:wn.f(t)})},kn=Mt.forEach,Sn=Vt("hidden"),jn=ot("toPrimitive"),An=Yt.set,En=Yt.getterFor("Symbol"),_n=Object.prototype,In=n.Symbol,Tn=Le("JSON","stringify"),Pn=R.f,Dn=p.f,Ln=bn.f,Mn=I.f,Cn=X("symbols"),Fn=X("op-symbols"),Rn=X("string-to-symbol-registry"),Nn=X("symbol-to-string-registry"),zn=X("wks"),Gn=n.QObject,Un=!Gn||!Gn.prototype||!Gn.prototype.findChild,qn=i&&o((function(){return 7!=ze(Dn({},"a",{get:function(){return Dn(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Pn(_n,e);n&&delete _n[e],Dn(t,e,r),n&&t!==_n&&Dn(_n,e,n)}:Dn,Vn=function(t,e){var r=Cn[t]=ze(In.prototype);return An(r,{type:"Symbol",tag:t,description:e}),i||(r.description=e),r},Wn=tt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof In},Jn=function(t,e,r){t===_n&&Jn(Fn,e,r),l(t);var n=h(e,!0);return l(r),O(Cn,n)?(r.enumerable?(O(t,Sn)&&t[Sn][n]&&(t[Sn][n]=!1),r=ze(r,{enumerable:y(0,!1)})):(O(t,Sn)||Dn(t,Sn,y(1,{})),t[Sn][n]=!0),qn(t,n,r)):Dn(t,n,r)},$n=function(t,e){l(t);var r=C(e),n=Te(r).concat(Yn(r));return kn(n,(function(e){i&&!Bn.call(r,e)||Jn(t,e,r[e])})),t},Bn=function(t){var e=h(t,!0),r=Mn.call(this,e);return!(this===_n&&O(Cn,e)&&!O(Fn,e))&&(!(r||!O(this,e)||!O(Cn,e)||O(this,Sn)&&this[Sn][e])||r)},Kn=function(t,e){var r=C(t),n=h(e,!0);if(r!==_n||!O(Cn,n)||O(Fn,n)){var o=Pn(r,n);return!o||!O(Cn,n)||O(r,Sn)&&r[Sn][n]||(o.enumerable=!0),o}},Qn=function(t){var e=Ln(C(t)),r=[];return kn(e,(function(t){O(Cn,t)||O(b,t)||r.push(t)})),r},Yn=function(t){var e=t===_n,r=Ln(e?Fn:C(t)),n=[];return kn(r,(function(t){!O(Cn,t)||e&&!O(_n,t)||n.push(Cn[t])})),n};if(Z||(g((In=function(){if(this instanceof In)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=S(t),r=function(t){this===_n&&r.call(Fn,t),O(this,Sn)&&O(this[Sn],e)&&(this[Sn][e]=!1),qn(this,e,y(1,t))};return i&&Un&&qn(_n,e,{configurable:!0,set:r}),Vn(e,t)}).prototype,"toString",(function(){return En(this).tag})),g(In,"withoutSetter",(function(t){return Vn(S(t),t)})),I.f=Bn,p.f=Jn,R.f=Kn,cn.f=bn.f=Qn,fn.f=Yn,wn.f=function(t){return Vn(ot(t),t)},i&&Dn(In.prototype,"description",{configurable:!0,get:function(){return En(this).description}})),Y({global:!0,wrap:!0,forced:!Z,sham:!Z},{Symbol:In}),kn(Te(zn),(function(t){xn(t)})),Y({target:"Symbol",stat:!0,forced:!Z},{for:function(t){var e=String(t);if(O(Rn,e))return Rn[e];var r=In(e);return Rn[e]=r,Nn[r]=e,r},keyFor:function(t){if(!Wn(t))throw TypeError(t+" is not a symbol");if(O(Nn,t))return Nn[t]},useSetter:function(){Un=!0},useSimple:function(){Un=!1}}),Y({target:"Object",stat:!0,forced:!Z,sham:!i},{create:function(t,e){return void 0===e?ze(t):$n(ze(t),e)},defineProperty:Jn,defineProperties:$n,getOwnPropertyDescriptor:Kn}),Y({target:"Object",stat:!0,forced:!Z},{getOwnPropertyNames:Qn,getOwnPropertySymbols:Yn}),Y({target:"Object",stat:!0,forced:o((function(){fn.f(1)}))},{getOwnPropertySymbols:function(t){return fn.f(_t(t))}}),Tn){var Hn=!Z||o((function(){var t=In();return"[null]"!=Tn([t])||"{}"!=Tn({a:t})||"{}"!=Tn(Object(t))}));Y({target:"JSON",stat:!0,forced:Hn},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(a(e)||void 0!==t)&&!Wn(t))return It(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Wn(e))return e}),o[1]=e,Tn.apply(null,o)}})}In.prototype[jn]||d(In.prototype,jn,In.prototype.valueOf),Et(In,"Symbol"),b[Sn]=!0;var Xn=J.Object.getOwnPropertySymbols,Zn=function(t){return function(e,r){var n,o,i=String(M(e)),a=lt(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},to={codeAt:Zn(!1),charAt:Zn(!0)}.charAt,eo=Yt.set,ro=Yt.getterFor("String Iterator");Be(String,"String",(function(t){eo(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=ro(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=to(r,n),e.index+=t.length,{value:t,done:!1})}));var no=function(t){var e=wt(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return l(e.call(t))},oo=wt,io=ot("iterator"),ao=!1;try{var uo=0,co={next:function(){return{done:!!uo++}},return:function(){ao=!0}};co[io]=function(){return this},Array.from(co,(function(){throw 2}))}catch(t){}var fo=!function(t,e){if(!e&&!ao)return!1;var r=!1;try{var n={};n[io]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){Array.from(t)}));Y({target:"Array",stat:!0,forced:fo},{from:function(t){var e,r,n,o,i,a,u=_t(t),c="function"==typeof this?this:Array,f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=wt(u),v=0;if(l&&(s=B(s,f>2?arguments[2]:void 0,2)),null==h||c==Array&&ct(h))for(r=new c(e=vt(u.length));e>v;v++)a=l?s(u[v],v):u[v],ln(r,v,a);else for(i=(o=h.call(u)).next,r=new c;!(n=i.call(o)).done;v++)a=l?Ot(o,s,[n.value,v],!0):n.value,ln(r,v,a);return r.length=v,r}});var so=J.Array.from,lo=so;Y({target:"Object",stat:!0,sham:!i},{create:ze});var ho=J.Object,vo=function(t,e){return ho.create(t,e)},po=vo;var yo,go=function(t,e,r){return e in t?Qr(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},mo="\t\n\v\f\r \u2028\u2029\ufeff",bo="["+mo+"]",wo=RegExp("^"+bo+bo+"*"),Oo=RegExp(bo+bo+"*$"),xo=function(t){return function(e){var r=String(M(e));return 1&t&&(r=r.replace(wo,"")),2&t&&(r=r.replace(Oo,"")),r}},ko={start:xo(1),end:xo(2),trim:xo(3)},So=ko.trim;Y({target:"String",proto:!0,forced:(yo="trim",o((function(){return!!mo[yo]()||"
"!="
"[yo]()||mo[yo].name!==yo})))},{trim:function(){return So(this)}});ir("String").trim;var jo=Mt.forEach,Ao=Lr("forEach"),Eo=br("forEach"),_o=Ao&&Eo?[].forEach:function(t){return jo(this,t,arguments.length>1?arguments[1]:void 0)};Y({target:"Array",proto:!0,forced:[].forEach!=_o},{forEach:_o});var Io=ir("Array").forEach,To=Array.prototype,Po={DOMTokenList:!0,NodeList:!0},Do=function(t){var e=t.forEach;return t===To||t instanceof Array&&e===To.forEach||Po.hasOwnProperty(mt(t))?Io:e},Lo=ko.trim,Mo=n.parseInt,Co=/^[+-]?0[Xx]/,Fo=8!==Mo(mo+"08")||22!==Mo(mo+"0x16")?function(t,e){var r=Lo(String(t));return Mo(r,e>>>0||(Co.test(r)?16:10))}:Mo;Y({global:!0,forced:parseInt!=Fo},{parseInt:Fo});var Ro=I.f,No=function(t){return function(e){for(var r,n=C(e),o=Te(n),a=o.length,u=0,c=[];a>u;)r=o[u++],i&&!Ro.call(n,r)||c.push(t?[r,n[r]]:n[r]);return c}},zo={entries:No(!0),values:No(!1)}.values;Y({target:"Object",stat:!0},{values:function(t){return zo(t)}});J.Object.values;var Go=o((function(){me(1)}));Y({target:"Object",stat:!0,forced:Go,sham:!ye},{getPrototypeOf:function(t){return me(_t(t))}});var Uo=J.Object.getPrototypeOf,qo=Ae.indexOf,Vo=[].indexOf,Wo=!!Vo&&1/[1].indexOf(1,-0)<0,Jo=Lr("indexOf"),$o=br("indexOf",{ACCESSORS:!0,1:0});Y({target:"Array",proto:!0,forced:Wo||!Jo||!$o},{indexOf:function(t){return Wo?Vo.apply(this,arguments)||0:qo(this,t,arguments.length>1?arguments[1]:void 0)}});ir("Array").indexOf;var Bo=Object.assign,Ko=Object.defineProperty,Qo=!Bo||o((function(){if(i&&1!==Bo({b:1},Bo(Ko({},"a",{enumerable:!0,get:function(){Ko(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Bo({},t)[r]||Te(Bo({},e)).join("")!=n}))?function(t,e){for(var r=_t(t),n=arguments.length,o=1,a=fn.f,u=I.f;n>o;)for(var c,f=L(arguments[o++]),s=a?Te(f).concat(a(f)):Te(f),l=s.length,h=0;l>h;)c=s[h++],i&&!u.call(f,c)||(r[c]=f[c]);return r}:Bo;Y({target:"Object",stat:!0,forced:Object.assign!==Qo},{assign:Qo});var Yo=J.Object.assign;Y({target:"Array",stat:!0},{isArray:It});var Ho=J.Array.isArray,Xo=Ho;var Zo=function(t){if(Xo(t))return t},ti=ot("iterator"),ei=function(t){var e=Object(t);return void 0!==e[ti]||"@@iterator"in e||it.hasOwnProperty(mt(e))},ri=ot("isConcatSpreadable"),ni=vr>=51||!o((function(){var t=[];return t[ri]=!1,t.concat()[0]!==t})),oi=yr("concat"),ii=function(t){if(!a(t))return!1;var e=t[ri];return void 0!==e?!!e:It(t)};Y({target:"Array",proto:!0,forced:!ni||!oi},{concat:function(t){var e,r,n,o,i,a=_t(this),u=Pt(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(ii(i=-1===e?a:arguments[e])){if(c+(o=vt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,c++)r in i&&ln(u,c,i[r])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ln(u,c++,i)}return u.length=c,u}}),xn("asyncIterator"),xn("hasInstance"),xn("isConcatSpreadable"),xn("iterator"),xn("match"),xn("matchAll"),xn("replace"),xn("search"),xn("species"),xn("split"),xn("toPrimitive"),xn("toStringTag"),xn("unscopables"),Et(Math,"Math",!0),Et(n.JSON,"JSON",!0);var ai=J.Symbol;xn("asyncDispose"),xn("dispose"),xn("observable"),xn("patternMatch"),xn("replaceAll");var ui=ai;var ci=function(t,e){if(void 0!==ui&&ei(Object(t))){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=no(t);!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}},fi=so,si=yr("slice"),li=br("slice",{ACCESSORS:!0,0:0,1:2}),hi=ot("species"),vi=[].slice,pi=Math.max;Y({target:"Array",proto:!0,forced:!si||!li},{slice:function(t,e){var r,n,o,i=C(this),u=vt(i.length),c=Se(t,u),f=Se(void 0===e?u:e,u);if(It(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!It(r.prototype)?a(r)&&null===(r=r[hi])&&(r=void 0):r=void 0,r===Array||void 0===r))return vi.call(i,c,f);for(n=new(void 0===r?Array:r)(pi(f-c,0)),o=0;c<f;c++,o++)c in i&&ln(n,o,i[c]);return n.length=o,n}});var yi=ir("Array").slice,di=Array.prototype,gi=function(t){var e=t.slice;return t===di||t instanceof Array&&e===di.slice?yi:e},mi=gi;var bi=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n};var wi=function(t,e){var r;if(t){if("string"==typeof t)return bi(t,e);var n=mi(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?fi(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bi(t,e):void 0}};var Oi=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.")};var xi=function(t,e){return Zo(t)||ci(t,e)||wi(t,e)||Oi()};Y({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});J.Date.now;var ki=o((function(){Te(1)}));Y({target:"Object",stat:!0,forced:ki},{keys:function(t){return Te(_t(t))}});var Si=J.Object.keys,ji=Ho,Ai=wn.f("iterator"),Ei=Ai,_i=e((function(t){function e(r){return t.exports=e="function"==typeof ui&&"symbol"==typeof Ei?function(t){return typeof t}:function(t){return t&&"function"==typeof ui&&t.constructor===ui&&t!==ui.prototype?"symbol":typeof t},e(r)}t.exports=e}));Y({target:"Reflect",stat:!0},{ownKeys:sn});var Ii=J.Reflect.ownKeys,Ti=gi;var Pi=function(t){if(Xo(t))return bi(t)};var Di=function(t){if(void 0!==ui&&ei(Object(t)))return fi(t)};var Li=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.")};var Mi=function(t){return Pi(t)||Di(t)||wi(t)||Li()},Ci=ir("Array").concat,Fi=Array.prototype,Ri=function(t){var e=t.concat;return t===Fi||t instanceof Array&&e===Fi.concat?Ci:e},Ni=ai;function zi(t,e){var r;if(void 0===Ni||null==oo(t)){if(ji(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return Gi(t,e);var n=Ti(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return lo(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gi(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=no(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Gi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}
|
|
41
|
-
/**
|
|
42
|
-
* vis-util
|
|
43
|
-
* https://github.com/visjs/vis-util
|
|
44
|
-
*
|
|
45
|
-
* utilitie collection for visjs
|
|
46
|
-
*
|
|
47
|
-
* @version 4.3.4
|
|
48
|
-
* @date 2020-08-01T15:11:53.524Z
|
|
49
|
-
*
|
|
50
|
-
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
|
|
51
|
-
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
|
|
52
|
-
*
|
|
53
|
-
* @license
|
|
54
|
-
* vis.js is dual licensed under both
|
|
26
|
+
function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={exports:{}},n=function(t){return t&&t.Math==Math&&t},i=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")(),o={},a=function(t){try{return!!t()}catch(t){return!0}},u=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={},c={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,f=l&&!c.call({1:2},1);s.f=f?function(t){var e=l(this,t);return!!e&&e.enumerable}:c;var h,p,v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},d={}.toString,y=function(t){return d.call(t).slice(8,-1)},g=y,m="".split,b=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?m.call(t,""):Object(t)}:Object,_=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},w=b,O=_,E=function(t){return w(O(t))},x=function(t){return"object"==typeof t?null!==t:"function"==typeof t},T={},k=T,A=i,S=function(t){return"function"==typeof t?t:void 0},j=function(t,e){return arguments.length<2?S(k[t])||S(A[t]):k[t]&&k[t][e]||A[t]&&A[t][e]},I=j("navigator","userAgent")||"",P=i,D=I,L=P.process,C=P.Deno,M=L&&L.versions||C&&C.version,N=M&&M.v8;N?p=(h=N.split("."))[0]<4?1:h[0]+h[1]:D&&(!(h=D.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=D.match(/Chrome\/(\d+)/))&&(p=h[1]);var R=p&&+p,F=R,z=a,q=!!Object.getOwnPropertySymbols&&!z((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),Y=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=j,W=Y?function(t){return"symbol"==typeof t}:function(t){var e=X("Symbol");return"function"==typeof e&&Object(t)instanceof e},U=x,G={exports:{}},V=i,H=function(t,e){try{Object.defineProperty(V,t,{value:e,configurable:!0,writable:!0})}catch(r){V[t]=e}return e},$=i["__core-js_shared__"]||H("__core-js_shared__",{}),B=$;(G.exports=function(t,e){return B[t]||(B[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.1",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var J=_,K=function(t){return Object(J(t))},Q=K,Z={}.hasOwnProperty,tt=Object.hasOwn||function(t,e){return Z.call(Q(t),e)},et=0,rt=Math.random(),nt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++et+rt).toString(36)},it=i,ot=G.exports,at=tt,ut=nt,st=q,ct=Y,lt=ot("wks"),ft=it.Symbol,ht=ct?ft:ft&&ft.withoutSetter||ut,pt=function(t){return at(lt,t)&&(st||"string"==typeof lt[t])||(st&&at(ft,t)?lt[t]=ft[t]:lt[t]=ht("Symbol."+t)),lt[t]},vt=x,dt=W,yt=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!U(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!U(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!U(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},gt=pt("toPrimitive"),mt=function(t,e){if(!vt(t)||dt(t))return t;var r,n=t[gt];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!vt(r)||dt(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),yt(t,e)},bt=W,_t=function(t){var e=mt(t,"string");return bt(e)?e:String(e)},wt=x,Ot=i.document,Et=wt(Ot)&&wt(Ot.createElement),xt=function(t){return Et?Ot.createElement(t):{}},Tt=xt,kt=!u&&!a((function(){return 7!=Object.defineProperty(Tt("div"),"a",{get:function(){return 7}}).a})),At=u,St=s,jt=v,It=E,Pt=_t,Dt=tt,Lt=kt,Ct=Object.getOwnPropertyDescriptor;o.f=At?Ct:function(t,e){if(t=It(t),e=Pt(e),Lt)try{return Ct(t,e)}catch(t){}if(Dt(t,e))return jt(!St.f.call(t,e),t[e])};var Mt=a,Nt=/#|\.prototype\./,Rt=function(t,e){var r=zt[Ft(t)];return r==Yt||r!=qt&&("function"==typeof e?Mt(e):!!e)},Ft=Rt.normalize=function(t){return String(t).replace(Nt,".").toLowerCase()},zt=Rt.data={},qt=Rt.NATIVE="N",Yt=Rt.POLYFILL="P",Xt=Rt,Wt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ut=Wt,Gt=function(t,e,r){if(Ut(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}},Vt={},Ht=x,$t=function(t){if(!Ht(t))throw TypeError(String(t)+" is not an object");return t},Bt=u,Jt=kt,Kt=$t,Qt=_t,Zt=Object.defineProperty;Vt.f=Bt?Zt:function(t,e,r){if(Kt(t),e=Qt(e),Kt(r),Jt)try{return Zt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var te=Vt,ee=v,re=u?function(t,e,r){return te.f(t,e,ee(1,r))}:function(t,e,r){return t[e]=r,t},ne=i,ie=o.f,oe=Xt,ae=T,ue=Gt,se=re,ce=tt,le=function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},fe=function(t,e){var r,n,i,o,a,u,s,c,l=t.target,f=t.global,h=t.stat,p=t.proto,v=f?ne:h?ne[l]:(ne[l]||{}).prototype,d=f?ae:ae[l]||(ae[l]={}),y=d.prototype;for(i in e)r=!oe(f?i:l+(h?".":"#")+i,t.forced)&&v&&ce(v,i),a=d[i],r&&(u=t.noTargetGet?(c=ie(v,i))&&c.value:v[i]),o=r&&u?u:e[i],r&&typeof a==typeof o||(s=t.bind&&r?ue(o,ne):t.wrap&&r?le(o):p&&"function"==typeof o?ue(Function.call,o):o,(t.sham||o&&o.sham||a&&a.sham)&&se(s,"sham",!0),d[i]=s,p&&(ce(ae,n=l+"Prototype")||se(ae,n,{}),ae[n][i]=o,t.real&&y&&!y[i]&&se(y,i,o)))};fe({target:"Object",stat:!0,forced:!u,sham:!u},{defineProperty:Vt.f});var he=T.Object,pe=r.exports=function(t,e,r){return he.defineProperty(t,e,r)};he.defineProperty.sham&&(pe.sham=!0);var ve=r.exports,de=ve;function ye(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),de(t,n.key,n)}}function ge(t,e,r){return e&&ye(t.prototype,e),r&&ye(t,r),t}var me=Wt,be=x,_e=[].slice,we={},Oe=function(t,e,r){if(!(e in we)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";we[e]=Function("C,a","return new C("+n.join(",")+")")}return we[e](t,r)},Ee=Function.bind||function(t){var e=me(this),r=_e.call(arguments,1),n=function(){var i=r.concat(_e.call(arguments));return this instanceof n?Oe(e,i.length,i):e.apply(t,i)};return be(e.prototype)&&(n.prototype=e.prototype),n};fe({target:"Function",proto:!0},{bind:Ee});var xe=T,Te=function(t){return xe[t+"Prototype"]},ke=Te("Function").bind,Ae=Function.prototype,Se=function(t){var e=t.bind;return t===Ae||t instanceof Function&&e===Ae.bind?ke:e},je=Math.ceil,Ie=Math.floor,Pe=function(t){return isNaN(t=+t)?0:(t>0?Ie:je)(t)},De=Pe,Le=Math.min,Ce=function(t){return t>0?Le(De(t),9007199254740991):0},Me=Wt,Ne=K,Re=b,Fe=Ce,ze=function(t){return function(e,r,n,i){Me(r);var o=Ne(e),a=Re(o),u=Fe(o.length),s=t?u-1:0,c=t?-1:1;if(n<2)for(;;){if(s in a){i=a[s],s+=c;break}if(s+=c,t?s<0:u<=s)throw TypeError("Reduce of empty array with no initial value")}for(;t?s>=0:u>s;s+=c)s in a&&(i=r(i,a[s],s,o));return i}},qe={left:ze(!1),right:ze(!0)},Ye=a,Xe=function(t,e){var r=[][t];return!!r&&Ye((function(){r.call(null,e||function(){throw 1},1)}))},We="process"==y(i.process),Ue=qe.left,Ge=R,Ve=We;fe({target:"Array",proto:!0,forced:!Xe("reduce")||!Ve&&Ge>79&&Ge<83},{reduce:function(t){return Ue(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var He=Te("Array").reduce,$e=Array.prototype,Be=function(t){var e=t.reduce;return t===$e||t instanceof Array&&e===$e.reduce?He:e},Je=y,Ke=Array.isArray||function(t){return"Array"==Je(t)},Qe=x,Ze=Ke,tr=pt("species"),er=function(t){var e;return Ze(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!Ze(e.prototype)?Qe(e)&&null===(e=e[tr])&&(e=void 0):e=void 0),void 0===e?Array:e},rr=function(t,e){return new(er(t))(0===e?0:e)},nr=Gt,ir=b,or=K,ar=Ce,ur=rr,sr=[].push,cr=function(t){var e=1==t,r=2==t,n=3==t,i=4==t,o=6==t,a=7==t,u=5==t||o;return function(s,c,l,f){for(var h,p,v=or(s),d=ir(v),y=nr(c,l,3),g=ar(d.length),m=0,b=f||ur,_=e?b(s,g):r||a?b(s,0):void 0;g>m;m++)if((u||m in d)&&(p=y(h=d[m],m,v),t))if(e)_[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:sr.call(_,h)}else switch(t){case 4:return!1;case 7:sr.call(_,h)}return o?-1:n||i?i:_}},lr={forEach:cr(0),map:cr(1),filter:cr(2),some:cr(3),every:cr(4),find:cr(5),findIndex:cr(6),filterReject:cr(7)},fr=a,hr=R,pr=pt("species"),vr=function(t){return hr>=51||!fr((function(){var e=[];return(e.constructor={})[pr]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},dr=lr.filter;fe({target:"Array",proto:!0,forced:!vr("filter")},{filter:function(t){return dr(this,t,arguments.length>1?arguments[1]:void 0)}});var yr=Te("Array").filter,gr=Array.prototype,mr=function(t){var e=t.filter;return t===gr||t instanceof Array&&e===gr.filter?yr:e},br=lr.map;fe({target:"Array",proto:!0,forced:!vr("map")},{map:function(t){return br(this,t,arguments.length>1?arguments[1]:void 0)}});var _r=Te("Array").map,wr=Array.prototype,Or=function(t){var e=t.map;return t===wr||t instanceof Array&&e===wr.map?_r:e},Er=Ke,xr=Ce,Tr=Gt,kr=function(t,e,r,n,i,o,a,u){for(var s,c=i,l=0,f=!!a&&Tr(a,u,3);l<n;){if(l in r){if(s=f?f(r[l],l,e):r[l],o>0&&Er(s))c=kr(t,e,s,xr(s.length),c,o-1)-1;else{if(c>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[c]=s}c++}l++}return c},Ar=kr,Sr=K,jr=Ce,Ir=Wt,Pr=rr;fe({target:"Array",proto:!0},{flatMap:function(t){var e,r=Sr(this),n=jr(r.length);return Ir(t),(e=Pr(r,0)).length=Ar(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var Dr=Te("Array").flatMap,Lr=Array.prototype,Cr=function(t){var e=t.flatMap;return t===Lr||t instanceof Array&&e===Lr.flatMap?Dr:e};function Mr(t){return new Rr(t)}var Nr=function(){function e(r,n,i){var o,a,u;t(this,e),this._source=r,this._transformers=n,this._target=i,this._listeners={add:Se(o=this._add).call(o,this),remove:Se(a=this._remove).call(a,this),update:Se(u=this._update).call(u,this)}}return ge(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return Be(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),e}(),Rr=function(){function e(r){t(this,e),this._source=r,this._transformers=[]}return ge(e,[{key:"filter",value:function(t){return this._transformers.push((function(e){return mr(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return Or(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return Cr(e).call(e,t)})),this}},{key:"to",value:function(t){return new Nr(this._source,this._transformers,t)}}]),e}(),Fr=W,zr=function(t){if(Fr(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},qr=Pe,Yr=zr,Xr=_,Wr=function(t){return function(e,r){var n,i,o=Yr(Xr(e)),a=qr(r),u=o.length;return a<0||a>=u?t?"":void 0:(n=o.charCodeAt(a))<55296||n>56319||a+1===u||(i=o.charCodeAt(a+1))<56320||i>57343?t?o.charAt(a):n:t?o.slice(a,a+2):i-56320+(n-55296<<10)+65536}},Ur={codeAt:Wr(!1),charAt:Wr(!0)},Gr=$,Vr=Function.toString;"function"!=typeof Gr.inspectSource&&(Gr.inspectSource=function(t){return Vr.call(t)});var Hr,$r,Br,Jr=Gr.inspectSource,Kr=i.WeakMap,Qr="function"==typeof Kr&&/native code/.test(Jr(Kr)),Zr=G.exports,tn=nt,en=Zr("keys"),rn=function(t){return en[t]||(en[t]=tn(t))},nn={},on=Qr,an=x,un=re,sn=tt,cn=$,ln=rn,fn=nn,hn=i.WeakMap;if(on||cn.state){var pn=cn.state||(cn.state=new hn),vn=pn.get,dn=pn.has,yn=pn.set;Hr=function(t,e){if(dn.call(pn,t))throw new TypeError("Object already initialized");return e.facade=t,yn.call(pn,t,e),e},$r=function(t){return vn.call(pn,t)||{}},Br=function(t){return dn.call(pn,t)}}else{var gn=ln("state");fn[gn]=!0,Hr=function(t,e){if(sn(t,gn))throw new TypeError("Object already initialized");return e.facade=t,un(t,gn,e),e},$r=function(t){return sn(t,gn)?t[gn]:{}},Br=function(t){return sn(t,gn)}}var mn,bn,_n,wn={set:Hr,get:$r,has:Br,enforce:function(t){return Br(t)?$r(t):Hr(t,{})},getterFor:function(t){return function(e){var r;if(!an(e)||(r=$r(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},On=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),En=tt,xn=K,Tn=On,kn=rn("IE_PROTO"),An=Object.prototype,Sn=Tn?Object.getPrototypeOf:function(t){return t=xn(t),En(t,kn)?t[kn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?An:null},jn=a,In=Sn,Pn=re,Dn=tt,Ln=pt("iterator"),Cn=!1;[].keys&&("next"in(_n=[].keys())?(bn=In(In(_n)))!==Object.prototype&&(mn=bn):Cn=!0);var Mn=null==mn||jn((function(){var t={};return mn[Ln].call(t)!==t}));Mn&&(mn={}),Mn&&!Dn(mn,Ln)&&Pn(mn,Ln,(function(){return this}));var Nn,Rn={IteratorPrototype:mn,BUGGY_SAFARI_ITERATORS:Cn},Fn=Pe,zn=Math.max,qn=Math.min,Yn=function(t,e){var r=Fn(t);return r<0?zn(r+e,0):qn(r,e)},Xn=E,Wn=Ce,Un=Yn,Gn=function(t){return function(e,r,n){var i,o=Xn(e),a=Wn(o.length),u=Un(n,a);if(t&&r!=r){for(;a>u;)if((i=o[u++])!=i)return!0}else for(;a>u;u++)if((t||u in o)&&o[u]===r)return t||u||0;return!t&&-1}},Vn={includes:Gn(!0),indexOf:Gn(!1)},Hn=tt,$n=E,Bn=Vn.indexOf,Jn=nn,Kn=function(t,e){var r,n=$n(t),i=0,o=[];for(r in n)!Hn(Jn,r)&&Hn(n,r)&&o.push(r);for(;e.length>i;)Hn(n,r=e[i++])&&(~Bn(o,r)||o.push(r));return o},Qn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Zn=Kn,ti=Qn,ei=Object.keys||function(t){return Zn(t,ti)},ri=Vt,ni=$t,ii=ei,oi=u?Object.defineProperties:function(t,e){ni(t);for(var r,n=ii(e),i=n.length,o=0;i>o;)ri.f(t,r=n[o++],e[r]);return t},ai=j("document","documentElement"),ui=$t,si=oi,ci=Qn,li=nn,fi=ai,hi=xt,pi=rn("IE_PROTO"),vi=function(){},di=function(t){return"<script>"+t+"<\/script>"},yi=function(t){t.write(di("")),t.close();var e=t.parentWindow.Object;return t=null,e},gi=function(){try{Nn=new ActiveXObject("htmlfile")}catch(t){}gi=document.domain&&Nn?yi(Nn):function(){var t,e=hi("iframe");if(e.style)return e.style.display="none",fi.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(di("document.F=Object")),t.close(),t.F}()||yi(Nn);for(var t=ci.length;t--;)delete gi.prototype[ci[t]];return gi()};li[pi]=!0;var mi=Object.create||function(t,e){var r;return null!==t?(vi.prototype=ui(t),r=new vi,vi.prototype=null,r[pi]=t):r=gi(),void 0===e?r:si(r,e)},bi={};bi[pt("toStringTag")]="z";var _i="[object z]"===String(bi),wi=_i,Oi=y,Ei=pt("toStringTag"),xi="Arguments"==Oi(function(){return arguments}()),Ti=wi?Oi:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ei))?r:xi?Oi(e):"Object"==(n=Oi(e))&&"function"==typeof e.callee?"Arguments":n},ki=Ti,Ai=_i?{}.toString:function(){return"[object "+ki(this)+"]"},Si=_i,ji=Vt.f,Ii=re,Pi=tt,Di=Ai,Li=pt("toStringTag"),Ci=function(t,e,r,n){if(t){var i=r?t:t.prototype;Pi(i,Li)||ji(i,Li,{configurable:!0,value:e}),n&&!Si&&Ii(i,"toString",Di)}},Mi={},Ni=Rn.IteratorPrototype,Ri=mi,Fi=v,zi=Ci,qi=Mi,Yi=function(){return this},Xi=x,Wi=$t,Ui=function(t){if(!Xi(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Gi=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Wi(r),Ui(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),Vi=re,Hi=function(t,e,r,n){n&&n.enumerable?t[e]=r:Vi(t,e,r)},$i=fe,Bi=function(t,e,r){var n=e+" Iterator";return t.prototype=Ri(Ni,{next:Fi(1,r)}),zi(t,n,!1,!0),qi[n]=Yi,t},Ji=Sn,Ki=Ci,Qi=re,Zi=Hi,to=Mi,eo=Rn.IteratorPrototype,ro=Rn.BUGGY_SAFARI_ITERATORS,no=pt("iterator"),io=function(){return this},oo=function(t,e,r,n,i,o,a){Bi(r,e,n);var u,s,c,l=function(t){if(t===i&&d)return d;if(!ro&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",h=!1,p=t.prototype,v=p[no]||p["@@iterator"]||i&&p[i],d=!ro&&v||l(i),y="Array"==e&&p.entries||v;if(y&&(u=Ji(y.call(new t)),eo!==Object.prototype&&u.next&&(Ki(u,f,!0,!0),to[f]=io)),"values"==i&&v&&"values"!==v.name&&(h=!0,d=function(){return v.call(this)}),a&&p[no]!==d&&Qi(p,no,d),to[e]=d,i)if(s={values:l("values"),keys:o?d:l("keys"),entries:l("entries")},a)for(c in s)(ro||h||!(c in p))&&Zi(p,c,s[c]);else $i({target:e,proto:!0,forced:ro||h},s);return s},ao=Ur.charAt,uo=zr,so=wn,co=oo,lo=so.set,fo=so.getterFor("String Iterator");co(String,"String",(function(t){lo(this,{type:"String Iterator",string:uo(t),index:0})}),(function(){var t,e=fo(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=ao(r,n),e.index+=t.length,{value:t,done:!1})}));var ho=$t,po=function(t){var e=t.return;if(void 0!==e)return ho(e.call(t)).value},vo=$t,yo=po,go=Mi,mo=pt("iterator"),bo=Array.prototype,_o=function(t){return void 0!==t&&(go.Array===t||bo[mo]===t)},wo=_t,Oo=Vt,Eo=v,xo=function(t,e,r){var n=wo(e);n in t?Oo.f(t,n,Eo(0,r)):t[n]=r},To=Ti,ko=Mi,Ao=pt("iterator"),So=function(t){if(null!=t)return t[Ao]||t["@@iterator"]||ko[To(t)]},jo=Gt,Io=K,Po=function(t,e,r,n){try{return n?e(vo(r)[0],r[1]):e(r)}catch(e){throw yo(t),e}},Do=_o,Lo=Ce,Co=xo,Mo=So,No=pt("iterator"),Ro=!1;try{var Fo=0,zo={next:function(){return{done:!!Fo++}},return:function(){Ro=!0}};zo[No]=function(){return this},Array.from(zo,(function(){throw 2}))}catch(t){}var qo=function(t){var e,r,n,i,o,a,u=Io(t),s="function"==typeof this?this:Array,c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,h=Mo(u),p=0;if(f&&(l=jo(l,c>2?arguments[2]:void 0,2)),null==h||s==Array&&Do(h))for(r=new s(e=Lo(u.length));e>p;p++)a=f?l(u[p],p):u[p],Co(r,p,a);else for(o=(i=h.call(u)).next,r=new s;!(n=o.call(i)).done;p++)a=f?Po(i,l,[n.value,p],!0):n.value,Co(r,p,a);return r.length=p,r};fe({target:"Array",stat:!0,forced:!function(t,e){if(!e&&!Ro)return!1;var r=!1;try{var n={};n[No]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){Array.from(t)}))},{from:qo});var Yo=T.Array.from,Xo=Yo,Wo=E,Uo=Mi,Go=wn,Vo=oo,Ho=Go.set,$o=Go.getterFor("Array Iterator");Vo(Array,"Array",(function(t,e){Ho(this,{type:"Array Iterator",target:Wo(t),index:0,kind:e})}),(function(){var t=$o(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),Uo.Arguments=Uo.Array;var Bo=So,Jo={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},Ko=i,Qo=Ti,Zo=re,ta=Mi,ea=pt("toStringTag");for(var ra in Jo){var na=Ko[ra],ia=na&&na.prototype;ia&&Qo(ia)!==ea&&Zo(ia,ea,ra),ta[ra]=ta.Array}var oa=Bo,aa={},ua=Kn,sa=Qn.concat("length","prototype");aa.f=Object.getOwnPropertyNames||function(t){return ua(t,sa)};var ca={},la=E,fa=aa.f,ha={}.toString,pa="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ca.f=function(t){return pa&&"[object Window]"==ha.call(t)?function(t){try{return fa(t)}catch(t){return pa.slice()}}(t):fa(la(t))};var va={};va.f=Object.getOwnPropertySymbols;var da={},ya=pt;da.f=ya;var ga=T,ma=tt,ba=da,_a=Vt.f,wa=function(t){var e=ga.Symbol||(ga.Symbol={});ma(e,t)||_a(e,t,{value:ba.f(t)})},Oa=fe,Ea=i,xa=j,Ta=u,ka=q,Aa=a,Sa=tt,ja=Ke,Ia=x,Pa=W,Da=$t,La=K,Ca=E,Ma=_t,Na=zr,Ra=v,Fa=mi,za=ei,qa=aa,Ya=ca,Xa=va,Wa=o,Ua=Vt,Ga=s,Va=re,Ha=Hi,$a=G.exports,Ba=nn,Ja=nt,Ka=pt,Qa=da,Za=wa,tu=Ci,eu=wn,ru=lr.forEach,nu=rn("hidden"),iu=Ka("toPrimitive"),ou=eu.set,au=eu.getterFor("Symbol"),uu=Object.prototype,su=Ea.Symbol,cu=xa("JSON","stringify"),lu=Wa.f,fu=Ua.f,hu=Ya.f,pu=Ga.f,vu=$a("symbols"),du=$a("op-symbols"),yu=$a("string-to-symbol-registry"),gu=$a("symbol-to-string-registry"),mu=$a("wks"),bu=Ea.QObject,_u=!bu||!bu.prototype||!bu.prototype.findChild,wu=Ta&&Aa((function(){return 7!=Fa(fu({},"a",{get:function(){return fu(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=lu(uu,e);n&&delete uu[e],fu(t,e,r),n&&t!==uu&&fu(uu,e,n)}:fu,Ou=function(t,e){var r=vu[t]=Fa(su.prototype);return ou(r,{type:"Symbol",tag:t,description:e}),Ta||(r.description=e),r},Eu=function(t,e,r){t===uu&&Eu(du,e,r),Da(t);var n=Ma(e);return Da(r),Sa(vu,n)?(r.enumerable?(Sa(t,nu)&&t[nu][n]&&(t[nu][n]=!1),r=Fa(r,{enumerable:Ra(0,!1)})):(Sa(t,nu)||fu(t,nu,Ra(1,{})),t[nu][n]=!0),wu(t,n,r)):fu(t,n,r)},xu=function(t,e){Da(t);var r=Ca(e),n=za(r).concat(Su(r));return ru(n,(function(e){Ta&&!Tu.call(r,e)||Eu(t,e,r[e])})),t},Tu=function(t){var e=Ma(t),r=pu.call(this,e);return!(this===uu&&Sa(vu,e)&&!Sa(du,e))&&(!(r||!Sa(this,e)||!Sa(vu,e)||Sa(this,nu)&&this[nu][e])||r)},ku=function(t,e){var r=Ca(t),n=Ma(e);if(r!==uu||!Sa(vu,n)||Sa(du,n)){var i=lu(r,n);return!i||!Sa(vu,n)||Sa(r,nu)&&r[nu][n]||(i.enumerable=!0),i}},Au=function(t){var e=hu(Ca(t)),r=[];return ru(e,(function(t){Sa(vu,t)||Sa(Ba,t)||r.push(t)})),r},Su=function(t){var e=t===uu,r=hu(e?du:Ca(t)),n=[];return ru(r,(function(t){!Sa(vu,t)||e&&!Sa(uu,t)||n.push(vu[t])})),n};(ka||(Ha((su=function(){if(this instanceof su)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Na(arguments[0]):void 0,e=Ja(t),r=function(t){this===uu&&r.call(du,t),Sa(this,nu)&&Sa(this[nu],e)&&(this[nu][e]=!1),wu(this,e,Ra(1,t))};return Ta&&_u&&wu(uu,e,{configurable:!0,set:r}),Ou(e,t)}).prototype,"toString",(function(){return au(this).tag})),Ha(su,"withoutSetter",(function(t){return Ou(Ja(t),t)})),Ga.f=Tu,Ua.f=Eu,Wa.f=ku,qa.f=Ya.f=Au,Xa.f=Su,Qa.f=function(t){return Ou(Ka(t),t)},Ta&&fu(su.prototype,"description",{configurable:!0,get:function(){return au(this).description}})),Oa({global:!0,wrap:!0,forced:!ka,sham:!ka},{Symbol:su}),ru(za(mu),(function(t){Za(t)})),Oa({target:"Symbol",stat:!0,forced:!ka},{for:function(t){var e=Na(t);if(Sa(yu,e))return yu[e];var r=su(e);return yu[e]=r,gu[r]=e,r},keyFor:function(t){if(!Pa(t))throw TypeError(t+" is not a symbol");if(Sa(gu,t))return gu[t]},useSetter:function(){_u=!0},useSimple:function(){_u=!1}}),Oa({target:"Object",stat:!0,forced:!ka,sham:!Ta},{create:function(t,e){return void 0===e?Fa(t):xu(Fa(t),e)},defineProperty:Eu,defineProperties:xu,getOwnPropertyDescriptor:ku}),Oa({target:"Object",stat:!0,forced:!ka},{getOwnPropertyNames:Au,getOwnPropertySymbols:Su}),Oa({target:"Object",stat:!0,forced:Aa((function(){Xa.f(1)}))},{getOwnPropertySymbols:function(t){return Xa.f(La(t))}}),cu)&&Oa({target:"JSON",stat:!0,forced:!ka||Aa((function(){var t=su();return"[null]"!=cu([t])||"{}"!=cu({a:t})||"{}"!=cu(Object(t))}))},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(Ia(e)||void 0!==t)&&!Pa(t))return ja(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Pa(e))return e}),i[1]=e,cu.apply(null,i)}});su.prototype[iu]||Va(su.prototype,iu,su.prototype.valueOf),tu(su,"Symbol"),Ba[nu]=!0;var ju=T.Object.getOwnPropertySymbols,Iu={exports:{}},Pu=fe,Du=a,Lu=E,Cu=o.f,Mu=u,Nu=Du((function(){Cu(1)}));Pu({target:"Object",stat:!0,forced:!Mu||Nu,sham:!Mu},{getOwnPropertyDescriptor:function(t,e){return Cu(Lu(t),e)}});var Ru=T.Object,Fu=Iu.exports=function(t,e){return Ru.getOwnPropertyDescriptor(t,e)};Ru.getOwnPropertyDescriptor.sham&&(Fu.sham=!0);var zu=Iu.exports,qu=aa,Yu=va,Xu=$t,Wu=j("Reflect","ownKeys")||function(t){var e=qu.f(Xu(t)),r=Yu.f;return r?e.concat(r(t)):e},Uu=Wu,Gu=E,Vu=o,Hu=xo;fe({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(t){for(var e,r,n=Gu(t),i=Vu.f,o=Uu(n),a={},u=0;o.length>u;)void 0!==(r=i(n,e=o[u++]))&&Hu(a,e,r);return a}});var $u=T.Object.getOwnPropertyDescriptors,Bu={exports:{}};fe({target:"Object",stat:!0,forced:!u,sham:!u},{defineProperties:oi});var Ju=T.Object,Ku=Bu.exports=function(t,e){return Ju.defineProperties(t,e)};Ju.defineProperties.sham&&(Ku.sham=!0);var Qu=Bu.exports,Zu=ve;function ts(t,e,r){return e in t?de(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}fe({target:"Array",stat:!0},{isArray:Ke});var es=T.Array.isArray,rs=es;var ns=fe,is=a,os=Ke,as=x,us=K,ss=Ce,cs=xo,ls=rr,fs=vr,hs=R,ps=pt("isConcatSpreadable"),vs=hs>=51||!is((function(){var t=[];return t[ps]=!1,t.concat()[0]!==t})),ds=fs("concat"),ys=function(t){if(!as(t))return!1;var e=t[ps];return void 0!==e?!!e:os(t)};ns({target:"Array",proto:!0,forced:!vs||!ds},{concat:function(t){var e,r,n,i,o,a=us(this),u=ls(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(ys(o=-1===e?a:arguments[e])){if(s+(i=ss(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,s++)r in o&&cs(u,s,o[r])}else{if(s>=9007199254740991)throw TypeError("Maximum allowed index exceeded");cs(u,s++,o)}return u.length=s,u}}),wa("asyncIterator"),wa("hasInstance"),wa("isConcatSpreadable"),wa("iterator"),wa("match"),wa("matchAll"),wa("replace"),wa("search"),wa("species"),wa("split"),wa("toPrimitive"),wa("toStringTag"),wa("unscopables"),Ci(i.JSON,"JSON",!0);var gs=T.Symbol;wa("asyncDispose"),wa("dispose"),wa("matcher"),wa("metadata"),wa("observable"),wa("patternMatch"),wa("replaceAll");var ms=gs;var bs=fe,_s=x,ws=Ke,Os=Yn,Es=Ce,xs=E,Ts=xo,ks=pt,As=vr("slice"),Ss=ks("species"),js=[].slice,Is=Math.max;bs({target:"Array",proto:!0,forced:!As},{slice:function(t,e){var r,n,i,o=xs(this),a=Es(o.length),u=Os(t,a),s=Os(void 0===e?a:e,a);if(ws(o)&&("function"!=typeof(r=o.constructor)||r!==Array&&!ws(r.prototype)?_s(r)&&null===(r=r[Ss])&&(r=void 0):r=void 0,r===Array||void 0===r))return js.call(o,u,s);for(n=new(void 0===r?Array:r)(Is(s-u,0)),i=0;u<s;u++,i++)u in o&&Ts(n,i,o[u]);return n.length=i,n}});var Ps=Te("Array").slice,Ds=Array.prototype,Ls=function(t){var e=t.slice;return t===Ds||t instanceof Array&&e===Ds.slice?Ps:e},Cs=Ls,Ms=Yo;function Ns(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rs(t,e){var r;if(t){if("string"==typeof t)return Ns(t,e);var n=Cs(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Ms(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ns(t,e):void 0}}function Fs(t,e){return function(t){if(rs(t))return t}(t)||function(t,e){var r=null==t?null:void 0!==ms&&oa(t)||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw i}}return o}}(t,e)||Rs(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.")}()}var zs=da.f("iterator"),qs=zs;function Ys(t){return(Ys="function"==typeof ms&&"symbol"==typeof qs?function(t){return typeof t}:function(t){return t&&"function"==typeof ms&&t.constructor===ms&&t!==ms.prototype?"symbol":typeof t})(t)}function Xs(t){return function(t){if(rs(t))return Ns(t)}(t)||function(t){if(void 0!==ms&&null!=oa(t)||null!=t["@@iterator"])return Ms(t)}(t)||Rs(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.")}()}var Ws=gs,Us=Te("Array").concat,Gs=Array.prototype,Vs=function(t){var e=t.concat;return t===Gs||t instanceof Array&&e===Gs.concat?Us:e},Hs=Ls;fe({target:"Reflect",stat:!0},{ownKeys:Wu});var $s=T.Reflect.ownKeys,Bs=es,Js=K,Ks=ei;fe({target:"Object",stat:!0,forced:a((function(){Ks(1)}))},{keys:function(t){return Ks(Js(t))}});var Qs=T.Object.keys;fe({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}}),T.Date.now;var Zs=lr.forEach,tc=Xe("forEach")?[].forEach:function(t){return Zs(this,t,arguments.length>1?arguments[1]:void 0)};fe({target:"Array",proto:!0,forced:[].forEach!=tc},{forEach:tc});var ec=Te("Array").forEach,rc=Ti,nc=Array.prototype,ic={DOMTokenList:!0,NodeList:!0},oc=function(t){var e=t.forEach;return t===nc||t instanceof Array&&e===nc.forEach||ic.hasOwnProperty(rc(t))?ec:e},ac=Ke,uc=[].reverse,sc=[1,2];fe({target:"Array",proto:!0,forced:String(sc)===String(sc.reverse())},{reverse:function(){return ac(this)&&(this.length=this.length),uc.call(this)}});var cc=Te("Array").reverse,lc=Array.prototype,fc=function(t){var e=t.reverse;return t===lc||t instanceof Array&&e===lc.reverse?cc:e},hc=fe,pc=Yn,vc=Pe,dc=Ce,yc=K,gc=rr,mc=xo,bc=vr("splice"),_c=Math.max,wc=Math.min;hc({target:"Array",proto:!0,forced:!bc},{splice:function(t,e){var r,n,i,o,a,u,s=yc(this),c=dc(s.length),l=pc(t,c),f=arguments.length;if(0===f?r=n=0:1===f?(r=0,n=c-l):(r=f-2,n=wc(_c(vc(e),0),c-l)),c+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=gc(s,n),o=0;o<n;o++)(a=l+o)in s&&mc(i,o,s[a]);if(i.length=n,r<n){for(o=l;o<c-n;o++)u=o+r,(a=o+n)in s?s[u]=s[a]:delete s[u];for(o=c;o>c-n+r;o--)delete s[o-1]}else if(r>n)for(o=c-n;o>l;o--)u=o+r-1,(a=o+n-1)in s?s[u]=s[a]:delete s[u];for(o=0;o<r;o++)s[o+l]=arguments[o+2];return s.length=c-n+r,i}});var Oc=Te("Array").splice,Ec=Array.prototype,xc=function(t){var e=t.splice;return t===Ec||t instanceof Array&&e===Ec.splice?Oc:e},Tc=u,kc=a,Ac=ei,Sc=va,jc=s,Ic=K,Pc=b,Dc=Object.assign,Lc=Object.defineProperty,Cc=!Dc||kc((function(){if(Tc&&1!==Dc({b:1},Dc(Lc({},"a",{enumerable:!0,get:function(){Lc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Dc({},t)[r]||Ac(Dc({},e)).join("")!=n}))?function(t,e){for(var r=Ic(t),n=arguments.length,i=1,o=Sc.f,a=jc.f;n>i;)for(var u,s=Pc(arguments[i++]),c=o?Ac(s).concat(o(s)):Ac(s),l=c.length,f=0;l>f;)u=c[f++],Tc&&!a.call(s,u)||(r[u]=s[u]);return r}:Dc;fe({target:"Object",stat:!0,forced:Object.assign!==Cc},{assign:Cc});var Mc=T.Object.assign,Nc=Vn.includes;fe({target:"Array",proto:!0},{includes:function(t){return Nc(this,t,arguments.length>1?arguments[1]:void 0)}}),Te("Array").includes;var Rc=x,Fc=y,zc=pt("match"),qc=function(t){var e;return Rc(t)&&(void 0!==(e=t[zc])?!!e:"RegExp"==Fc(t))},Yc=pt("match"),Xc=function(t){if(qc(t))throw TypeError("The method doesn't accept regular expressions");return t},Wc=_,Uc=zr;fe({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Yc]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~Uc(Wc(this)).indexOf(Uc(Xc(t)),arguments.length>1?arguments[1]:void 0)}}),Te("String").includes;var Gc=K,Vc=Sn,Hc=On;fe({target:"Object",stat:!0,forced:a((function(){Vc(1)})),sham:!Hc},{getPrototypeOf:function(t){return Vc(Gc(t))}});var $c=T.Object.getPrototypeOf,Bc=u,Jc=ei,Kc=E,Qc=s.f,Zc=function(t){return function(e){for(var r,n=Kc(e),i=Jc(n),o=i.length,a=0,u=[];o>a;)r=i[a++],Bc&&!Qc.call(n,r)||u.push(t?[r,n[r]]:n[r]);return u}},tl={entries:Zc(!0),values:Zc(!1)}.values;fe({target:"Object",stat:!0},{values:function(t){return tl(t)}}),T.Object.values;var el=_,rl=zr,nl="[\t\n\v\f\r \u2028\u2029\ufeff]",il=RegExp("^"+nl+nl+"*"),ol=RegExp(nl+nl+"*$"),al=function(t){return function(e){var r=rl(el(e));return 1&t&&(r=r.replace(il,"")),2&t&&(r=r.replace(ol,"")),r}},ul={start:al(1),end:al(2),trim:al(3)},sl=zr,cl=ul.trim,ll=i.parseInt,fl=/^[+-]?0[Xx]/,hl=8!==ll("\t\n\v\f\r \u2028\u2029\ufeff08")||22!==ll("\t\n\v\f\r \u2028\u2029\ufeff0x16")?function(t,e){var r=cl(sl(t));return ll(r,e>>>0||(fl.test(r)?16:10))}:ll;fe({global:!0,forced:parseInt!=hl},{parseInt:hl});var pl=fe,vl=Vn.indexOf,dl=Xe,yl=[].indexOf,gl=!!yl&&1/[1].indexOf(1,-0)<0,ml=dl("indexOf");pl({target:"Array",proto:!0,forced:gl||!ml},{indexOf:function(t){return gl?yl.apply(this,arguments)||0:vl(this,t,arguments.length>1?arguments[1]:void 0)}}),Te("Array").indexOf;var bl=a,_l="\t\n\v\f\r \u2028\u2029\ufeff",wl=ul.trim;fe({target:"String",proto:!0,forced:function(t){return bl((function(){return!!_l[t]()||"
"!="
"[t]()||_l[t].name!==t}))}("trim")},{trim:function(){return wl(this)}}),Te("String").trim,fe({target:"Object",stat:!0,sham:!u},{create:mi});var Ol=T.Object,El=function(t,e){return Ol.create(t,e)},xl=El,Tl=fe,kl=a,Al=j("JSON","stringify"),Sl=/[\uD800-\uDFFF]/g,jl=/^[\uD800-\uDBFF]$/,Il=/^[\uDC00-\uDFFF]$/,Pl=function(t,e,r){var n=r.charAt(e-1),i=r.charAt(e+1);return jl.test(t)&&!Il.test(i)||Il.test(t)&&!jl.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},Dl=kl((function(){return'"\\udf06\\ud834"'!==Al("\udf06\ud834")||'"\\udead"'!==Al("\udead")}));Al&&Tl({target:"JSON",stat:!0,forced:Dl},{stringify:function(t,e,r){var n=Al.apply(null,arguments);return"string"==typeof n?n.replace(Sl,Pl):n}});var Ll=T;Ll.JSON||(Ll.JSON={stringify:JSON.stringify});var Cl=function(t,e,r){return Ll.JSON.stringify.apply(null,arguments)},Ml=i,Nl=[].slice,Rl=function(t){return function(e,r){var n=arguments.length>2,i=n?Nl.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};fe({global:!0,bind:!0,forced:/MSIE .\./.test(I)},{setTimeout:Rl(Ml.setTimeout),setInterval:Rl(Ml.setInterval)});var Fl=T.setTimeout,zl=K,ql=Yn,Yl=Ce;fe({target:"Array",proto:!0},{fill:function(t){for(var e=zl(this),r=Yl(e.length),n=arguments.length,i=ql(n>1?arguments[1]:void 0,r),o=n>2?arguments[2]:void 0,a=void 0===o?r:ql(o,r);a>i;)e[i++]=t;return e}}),Te("Array").fill;var Xl={exports:{}};!function(t){function e(t){if(t)return function(t){for(var r in e.prototype)t[r]=e.prototype[r];return t}(t)}Xl.exports=e,e.prototype.on=e.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},e.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<n.length;i++)if((r=n[i])===e||r.fn===e){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},e.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var i=(r=r.slice(0)).length;n<i;++n)r[n].apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},e.prototype.hasListeners=function(t){return!!this.listeners(t).length}}();var Wl=Xl.exports;
|
|
27
|
+
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
|
|
28
|
+
* http://naver.github.io/egjs
|
|
55
29
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
* and
|
|
60
|
-
*
|
|
61
|
-
* 2. The MIT License
|
|
62
|
-
* http://opensource.org/licenses/MIT
|
|
63
|
-
*
|
|
64
|
-
* vis.js may be distributed under either license.
|
|
65
|
-
*/var Ui=Ni("DELETE");function qi(){var t=Vi.apply(void 0,arguments);return Ji(t),t}function Vi(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length<2)return e[0];var n;if(e.length>2)return Vi.apply(void 0,Ri(n=[qi(e[0],e[1])]).call(n,Mi(Ti(e).call(e,2))));var o,i=e[0],a=e[1],u=zi(Ii(a));try{for(u.s();!(o=u.n()).done;){var c=o.value;Object.prototype.propertyIsEnumerable.call(a,c)&&(a[c]===Ui?delete i[c]:null===i[c]||null===a[c]||"object"!==_i(i[c])||"object"!==_i(a[c])||ji(i[c])||ji(a[c])?i[c]=Wi(a[c]):i[c]=Vi(i[c],a[c]))}}catch(t){u.e(t)}finally{u.f()}return i}function Wi(t){return ji(t)?jr(t).call(t,(function(t){return Wi(t)})):"object"===_i(t)&&null!==t?Vi({},t):t}function Ji(t){for(var e=0,r=Si(t);e<r.length;e++){var n=r[e];t[n]===Ui?delete t[n]:"object"===_i(t[n])&&null!==t[n]&&Ji(t[n])}}var $i=Le("Reflect","construct"),Bi=o((function(){function t(){}return!($i((function(){}),[],t)instanceof t)})),Ki=!o((function(){$i((function(){}))})),Qi=Bi||Ki;Y({target:"Reflect",stat:!0,forced:Qi,sham:Qi},{construct:function(t,e){$(t),l(e);var r=arguments.length<3?t:$(arguments[2]);if(Ki&&!Bi)return $i(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(Vr.apply(t,n))}var o=r.prototype,i=ze(a(o)?o:Object.prototype),u=Function.apply.call(t,i,e);return a(u)?u:i}});var Yi=J.Reflect.construct,Hi=ir("Array").entries,Xi=Array.prototype,Zi={DOMTokenList:!0,NodeList:!0},ta=function(t){var e=t.entries;return t===Xi||t instanceof Array&&e===Xi.entries||Zi.hasOwnProperty(mt(t))?Hi:e},ea=e((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===v)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return T()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=j(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=v;var c=s(t,e,r);if("normal"===c.type){if(n=r.done?p:h,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",h="suspendedYield",v="executing",p="completed",y={};function d(){}function g(){}function m(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,O=w&&w(w(I([])));O&&O!==r&&n.call(O,i)&&(b=O);var x=m.prototype=d.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function j(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function I(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:T}}function T(){return{value:e,done:!0}}return g.prototype=x.constructor=m,m.constructor=g,g.displayName=c(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},k(S.prototype),S.prototype[a]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new S(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(x),c(x,u,"Generator"),x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=I,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),ra=Ai,na=Le("JSON","stringify"),oa=/[\uD800-\uDFFF]/g,ia=/^[\uD800-\uDBFF]$/,aa=/^[\uDC00-\uDFFF]$/,ua=function(t,e,r){var n=r.charAt(e-1),o=r.charAt(e+1);return ia.test(t)&&!aa.test(o)||aa.test(t)&&!ia.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},ca=o((function(){return'"\\udf06\\ud834"'!==na("\udf06\ud834")||'"\\udead"'!==na("\udead")}));na&&Y({target:"JSON",stat:!0,forced:ca},{stringify:function(t,e,r){var n=na.apply(null,arguments);return"string"==typeof n?n.replace(oa,ua):n}}),J.JSON||(J.JSON={stringify:JSON.stringify});var fa=function(t,e,r){return J.JSON.stringify.apply(null,arguments)},sa=ir("Array").values,la=Array.prototype,ha={DOMTokenList:!0,NodeList:!0},va=function(t){var e=t.values;return t===la||t instanceof Array&&e===la.values||ha.hasOwnProperty(mt(t))?sa:e},pa=[],ya=pa.sort,da=o((function(){pa.sort(void 0)})),ga=o((function(){pa.sort(null)})),ma=Lr("sort");Y({target:"Array",proto:!0,forced:da||!ga||!ma},{sort:function(t){return void 0===t?ya.call(_t(this)):ya.call(_t(this),$(t))}});var ba=ir("Array").sort,wa=Array.prototype,Oa=function(t){var e=t.sort;return t===wa||t instanceof Array&&e===wa.sort?ba:e},xa=ir("Array").keys,ka=Array.prototype,Sa={DOMTokenList:!0,NodeList:!0},ja=function(t){var e=t.keys;return t===ka||t instanceof Array&&e===ka.keys||Sa.hasOwnProperty(mt(t))?xa:e},Aa=Mt.some,Ea=Lr("some"),_a=br("some");Y({target:"Array",proto:!0,forced:!Ea||!_a},{some:function(t){return Aa(this,t,arguments.length>1?arguments[1]:void 0)}});var Ia=ir("Array").some,Ta=Array.prototype,Pa=function(t){var e=t.some;return t===Ta||t instanceof Array&&e===Ta.some?Ia:e},Da=ot("species"),La=p.f,Ma=A.fastKey,Ca=Yt.set,Fa=Yt.getterFor,Ra={getConstructor:function(t,e,r,n){var o=t((function(t,a){kt(t,o,e),Ca(t,{type:e,index:ze(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=a&&xt(a,t[n],t,r)})),a=Fa(e),u=function(t,e,r){var n,o,u=a(t),f=c(t,e);return f?f.value=r:(u.last=f={index:o=Ma(e,!0),key:e,value:r,previous:n=u.last,next:void 0,removed:!1},u.first||(u.first=f),n&&(n.next=f),i?u.size++:t.size++,"F"!==o&&(u.index[o]=f)),t},c=function(t,e){var r,n=a(t),o=Ma(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return m(o.prototype,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,i?t.size=0:this.size=0},delete:function(t){var e=this,r=a(e),n=c(e,t);if(n){var o=n.next,u=n.previous;delete r.index[n.index],n.removed=!0,u&&(u.next=o),o&&(o.previous=u),r.first==n&&(r.first=o),r.last==n&&(r.last=u),i?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=a(this),n=B(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),m(o.prototype,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),i&&La(o.prototype,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Fa(e),a=Fa(n);Be(t,e,(function(t,e){Ca(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),function(t){var e=Le(t),r=p.f;i&&e&&!e[Da]&&r(e,Da,{configurable:!0,get:function(){return this}})}(e)}},Na=(ee("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Ra),J.Map);var za=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},Ga=vo;Y({target:"Object",stat:!0},{setPrototypeOf:qe});var Ua=J.Object.setPrototypeOf,qa=e((function(t){function e(r,n){return t.exports=e=Ua||function(t,e){return t.__proto__=e,t},e(r,n)}t.exports=e}));var Va=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Ga(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qa(t,e)};var Wa=function(t,e){return!e||"object"!==_i(e)&&"function"!=typeof e?za(t):e},Ja=Uo,$a=e((function(t){function e(r){return t.exports=e=Ua?Ja:function(t){return t.__proto__||Ja(t)},e(r)}t.exports=e})),Ba="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Ka=new Uint8Array(16);function Qa(){if(!Ba)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ba(Ka)}var Ya=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ha(t){return"string"==typeof t&&Ya.test(t)}for(var Xa=[],Za=0;Za<256;++Za)Xa.push((Za+256).toString(16).substr(1));function tu(t,e,r){var n=(t=t||{}).random||(t.rng||Qa)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(Xa[t[e+0]]+Xa[t[e+1]]+Xa[t[e+2]]+Xa[t[e+3]]+"-"+Xa[t[e+4]]+Xa[t[e+5]]+"-"+Xa[t[e+6]]+Xa[t[e+7]]+"-"+Xa[t[e+8]]+Xa[t[e+9]]+"-"+Xa[t[e+10]]+Xa[t[e+11]]+Xa[t[e+12]]+Xa[t[e+13]]+Xa[t[e+14]]+Xa[t[e+15]]).toLowerCase();if(!Ha(r))throw TypeError("Stringified UUID is invalid");return r}(n)}function eu(t){return"string"==typeof t||"number"==typeof t}var ru=yr("splice"),nu=br("splice",{ACCESSORS:!0,0:0,1:2}),ou=Math.max,iu=Math.min;Y({target:"Array",proto:!0,forced:!ru||!nu},{splice:function(t,e){var r,n,o,i,a,u,c=_t(this),f=vt(c.length),s=Se(t,f),l=arguments.length;if(0===l?r=n=0:1===l?(r=0,n=f-s):(r=l-2,n=iu(ou(lt(e),0),f-s)),f+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Pt(c,n),i=0;i<n;i++)(a=s+i)in c&&ln(o,i,c[a]);if(o.length=n,r<n){for(i=s;i<f-n;i++)u=i+r,(a=i+n)in c?c[u]=c[a]:delete c[u];for(i=f;i>f-n+r;i--)delete c[i-1]}else if(r>n)for(i=f-n;i>s;i--)u=i+r-1,(a=i+n-1)in c?c[u]=c[a]:delete c[u];for(i=0;i<r;i++)c[i+s]=arguments[i+2];return c.length=f-n+r,o}});var au=ir("Array").splice,uu=Array.prototype,cu=function(t){var e=t.splice;return t===uu||t instanceof Array&&e===uu.splice?au:e},fu=[].slice,su=/MSIE .\./.test(fr),lu=function(t){return function(e,r){var n=arguments.length>2,o=n?fu.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,r)}};Y({global:!0,bind:!0,forced:su},{setTimeout:lu(n.setTimeout),setInterval:lu(n.setInterval)});var hu,vu,pu,yu,du=J.setTimeout,gu=function(){function t(e){Br(this,t),hu.set(this,[]),vu.set(this,null),pu.set(this,null),this.delay=null,this.max=1/0,this.setOptions(e)}return Xr(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),Zr(this,pu)){for(var t=Zr(this,pu).object,e=Zr(this,pu).methods,r=0;r<e.length;r++){var n=e[r];n.original?t[n.name]=n.original:delete t[n.name]}tn(this,pu,null)}}},{key:"replace",value:function(t,e){var r=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];r.queue({args:e,fn:n,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?Zr(this,hu).push({fn:t}):Zr(this,hu).push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;Zr(this,hu).length>this.max&&this.flush(),null!=Zr(this,vu)&&(clearTimeout(Zr(this,vu)),tn(this,vu,null)),this.queue.length>0&&"number"==typeof this.delay&&tn(this,vu,du((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;Do(t=cu(e=Zr(this,hu)).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,r){var n=new t(r);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var o=[{name:"flush",original:void 0}];if(r&&r.replace)for(var i=0;i<r.replace.length;i++){var a=r.replace[i];o.push({name:a,original:e[a]}),n.replace(e,a)}return tn(n,pu,{object:e,methods:o}),n}}]),t}();hu=new tr,vu=new tr,pu=new tr;var mu=function(){function t(){Br(this,t),yu.set(this,{"*":[],add:[],remove:[],update:[]}),this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return Xr(t,[{key:"_trigger",value:function(t,e,r){var n,o;if("*"===t)throw new Error("Cannot trigger event *");Do(n=Ri(o=[]).call(o,Mi(Zr(this,yu)[t]),Mi(Zr(this,yu)["*"]))).call(n,(function(n){n(t,e,null!=r?r:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&Zr(this,yu)[t].push(e)}},{key:"off",value:function(t,e){var r;Zr(this,yu)[t]=Pr(r=Zr(this,yu)[t]).call(r,(function(t){return t!==e}))}}]),t}();yu=new tr;ee("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Ra);var bu,wu=J.Set;function Ou(t,e){var r;if(void 0===Ni||null==oo(t)){if(ji(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return xu(t,e);var n=Ti(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return lo(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xu(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=no(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function xu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ku,Su,ju,Au,Eu=function(){function t(e){Br(this,t),bu.set(this,void 0),tn(this,bu,e)}return Xr(t,[{key:(bu=new tr,ra),value:ea.mark((function t(){var e,r,n,o,i;return ea.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Ou(Zr(this,bu)),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=xi(r.value,2),o=n[0],i=n[1],t.next=7,[o,i];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:ea.mark((function t(){var e,r,n,o,i;return ea.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Ou(Zr(this,bu)),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=xi(r.value,2),o=n[0],i=n[1],t.next=7,[o,i];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:ea.mark((function t(){var e,r,n,o;return ea.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Ou(Zr(this,bu)),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=xi(r.value,1),o=n[0],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:ea.mark((function t(){var e,r,n,o;return ea.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=Ou(Zr(this,bu)),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=xi(r.value,2),o=n[1],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return jr(t=Mi(Zr(this,bu))).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return jr(t=Mi(Zr(this,bu))).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Mi(Zr(this,bu))}},{key:"toObjectMap",value:function(){var t,e=po(null),r=Ou(Zr(this,bu));try{for(r.s();!(t=r.n()).done;){var n=xi(t.value,2),o=n[0],i=n[1];e[o]=i}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"toMap",value:function(){return new Na(Zr(this,bu))}},{key:"toIdSet",value:function(){return new wu(this.toIdArray())}},{key:"toItemSet",value:function(){return new wu(this.toItemArray())}},{key:"cache",value:function(){return new t(Mi(Zr(this,bu)))}},{key:"distinct",value:function(t){var e,r=new wu,n=Ou(Zr(this,bu));try{for(n.s();!(e=n.n()).done;){var o=xi(e.value,2),i=o[0],a=o[1];r.add(t(a,i))}}catch(t){n.e(t)}finally{n.f()}return r}},{key:"filter",value:function(e){var r=Zr(this,bu);return new t(go({},ra,ea.mark((function t(){var n,o,i,a,u;return ea.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=Ou(r),t.prev=1,n.s();case 3:if((o=n.n()).done){t.next=10;break}if(i=xi(o.value,2),a=i[0],u=i[1],!e(u,a)){t.next=8;break}return t.next=8,[a,u];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),n.e(t.t0);case 15:return t.prev=15,n.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])}))))}},{key:"forEach",value:function(t){var e,r=Ou(Zr(this,bu));try{for(r.s();!(e=r.n()).done;){var n=xi(e.value,2),o=n[0];t(n[1],o)}}catch(t){r.e(t)}finally{r.f()}}},{key:"map",value:function(e){var r=Zr(this,bu);return new t(go({},ra,ea.mark((function t(){var n,o,i,a,u;return ea.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=Ou(r),t.prev=1,n.s();case 3:if((o=n.n()).done){t.next=9;break}return i=xi(o.value,2),a=i[0],u=i[1],t.next=7,[a,e(u,a)];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0);case 14:return t.prev=14,n.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,11,14,17]])}))))}},{key:"max",value:function(t){var e=no(Zr(this,bu)),r=e.next();if(r.done)return null;for(var n=r.value[1],o=t(r.value[1],r.value[0]);!(r=e.next()).done;){var i=xi(r.value,2),a=i[0],u=i[1],c=t(u,a);c>o&&(o=c,n=u)}return n}},{key:"min",value:function(t){var e=no(Zr(this,bu)),r=e.next();if(r.done)return null;for(var n=r.value[1],o=t(r.value[1],r.value[0]);!(r=e.next()).done;){var i=xi(r.value,2),a=i[0],u=i[1],c=t(u,a);c<o&&(o=c,n=u)}return n}},{key:"reduce",value:function(t,e){var r,n=Ou(Zr(this,bu));try{for(n.s();!(r=n.n()).done;){var o=xi(r.value,2),i=o[0];e=t(e,o[1],i)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"sort",value:function(e){var r=this;return new t(go({},ra,(function(){var t;return no(Oa(t=Mi(Zr(r,bu))).call(t,(function(t,r){var n=xi(t,2),o=n[0],i=n[1],a=xi(r,2),u=a[0],c=a[1];return e(i,c,o,u)})))})))}}]),t}();function _u(t,e){var r=Si(t);if(Xn){var n=Xn(t);e&&(n=Pr(n).call(n,(function(e){return yn(t,e).enumerable}))),r.push.apply(r,n)}return r}function Iu(t){for(var e=1;e<arguments.length;e++){var r,n=null!=arguments[e]?arguments[e]:{};if(e%2)Do(r=_u(Object(n),!0)).call(r,(function(e){go(t,e,n[e])}));else if(hn)an(t,hn(n));else{var o;Do(o=_u(Object(n))).call(o,(function(e){on(t,e,yn(n,e))}))}}return t}function Tu(t,e){var r;if(void 0===Ni||null==oo(t)){if(ji(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return Pu(t,e);var n=Ti(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return lo(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pu(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=no(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Pu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Du(t){var e=function(){if("undefined"==typeof Reflect||!Yi)return!1;if(Yi.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Yi(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=$a(t);if(e){var o=$a(this).constructor;r=Yi(n,arguments,o)}else r=n.apply(this,arguments);return Wa(this,r)}}var Lu,Mu,Cu,Fu,Ru=function(t){Va(r,mu);var e=Du(r);function r(t,n){var o;return Br(this,r),o=e.call(this),ku.set(za(o),void 0),Su.set(za(o),void 0),ju.set(za(o),void 0),Au.set(za(o),null),t&&!ji(t)&&(n=t,t=[]),tn(za(o),ku,n||{}),tn(za(o),Su,new Na),o.length=0,tn(za(o),ju,Zr(za(o),ku).fieldId||"id"),t&&t.length&&o.add(t),o.setOptions(n),o}return Xr(r,[{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?Zr(this,Au)&&(Zr(this,Au).destroy(),tn(this,Au,null)):(Zr(this,Au)||tn(this,Au,gu.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===_i(t.queue)&&Zr(this,Au).setOptions(t.queue)))}},{key:"add",value:function(t,e){var r,n=this,o=[];if(ji(t)){var i=jr(t).call(t,(function(t){return t[Zr(n,ju)]}));if(Pa(i).call(i,(function(t){return Zr(n,Su).has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var a=0,u=t.length;a<u;a++)r=this._addItem(t[a]),o.push(r)}else{if(!t||"object"!==_i(t))throw new Error("Unknown dataType");r=this._addItem(t),o.push(r)}return o.length&&this._trigger("add",{items:o},e),o}},{key:"update",value:function(t,e){var r=this,n=[],o=[],i=[],a=[],u=Zr(this,ju),c=function(t){var e=t[u];if(null!=e&&Zr(r,Su).has(e)){var c=t,f=Yo({},Zr(r,Su).get(e)),s=r._updateItem(c);o.push(s),a.push(c),i.push(f)}else{var l=r._addItem(t);n.push(l)}};if(ji(t))for(var f=0,s=t.length;f<s;f++)t[f]&&"object"===_i(t[f])?c(t[f]):console.warn("Ignoring input item, which is not an object at index "+f);else{if(!t||"object"!==_i(t))throw new Error("Unknown dataType");c(t)}if(n.length&&this._trigger("add",{items:n},e),o.length){var l={items:o,oldData:i,data:a};this._trigger("update",l,e)}return Ri(n).call(n,o)}},{key:"updateOnly",value:function(t,e){var r,n=this;ji(t)||(t=[t]);var o=jr(r=jr(t).call(t,(function(t){var e=Zr(n,Su).get(t[Zr(n,ju)]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(r,(function(t){var e=t.oldData,r=t.update,o=e[Zr(n,ju)],i=function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return qi.apply(void 0,Ri(e=[{},t]).call(e,n))}(e,r);return Zr(n,Su).set(o,i),{id:o,oldData:e,updatedData:i}}));if(o.length){var i={items:jr(o).call(o,(function(t){return t.id})),oldData:jr(o).call(o,(function(t){return t.oldData})),data:jr(o).call(o,(function(t){return t.updatedData}))};return this._trigger("update",i,e),i.items}return[]}},{key:"get",value:function(t,e){var r=void 0,n=void 0,o=void 0;eu(t)?(r=t,o=e):ji(t)?(n=t,o=e):o=t;var i=o&&"Object"===o.returnType?"Object":"Array",a=o&&Pr(o),u=[],c=void 0,f=void 0,s=void 0;if(null!=r)(c=Zr(this,Su).get(r))&&a&&!a(c)&&(c=void 0);else if(null!=n)for(var l=0,h=n.length;l<h;l++)null==(c=Zr(this,Su).get(n[l]))||a&&!a(c)||u.push(c);else for(var v,p=0,y=(f=Mi(ja(v=Zr(this,Su)).call(v))).length;p<y;p++)s=f[p],null==(c=Zr(this,Su).get(s))||a&&!a(c)||u.push(c);if(o&&o.order&&null==r&&this._sort(u,o.order),o&&o.fields){var d=o.fields;if(null!=r&&null!=c)c=this._filterFields(c,d);else for(var g=0,m=u.length;g<m;g++)u[g]=this._filterFields(u[g],d)}if("Object"==i){for(var b={},w=0,O=u.length;w<O;w++){var x=u[w];b[x[Zr(this,ju)]]=x}return b}return null!=r?null!=c?c:null:u}},{key:"getIds",value:function(t){var e=Zr(this,Su),r=t&&Pr(t),n=t&&t.order,o=Mi(ja(e).call(e)),i=[];if(r)if(n){for(var a=[],u=0,c=o.length;u<c;u++){var f=o[u],s=Zr(this,Su).get(f);null!=s&&r(s)&&a.push(s)}this._sort(a,n);for(var l=0,h=a.length;l<h;l++)i.push(a[l][Zr(this,ju)])}else for(var v=0,p=o.length;v<p;v++){var y=o[v],d=Zr(this,Su).get(y);null!=d&&r(d)&&i.push(d[Zr(this,ju)])}else if(n){for(var g=[],m=0,b=o.length;m<b;m++){var w=o[m];g.push(e.get(w))}this._sort(g,n);for(var O=0,x=g.length;O<x;O++)i.push(g[O][Zr(this,ju)])}else for(var k=0,S=o.length;k<S;k++){var j=o[k],A=e.get(j);null!=A&&i.push(A[Zr(this,ju)])}return i}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var r=e&&Pr(e),n=Zr(this,Su),o=Mi(ja(n).call(n));if(e&&e.order)for(var i=this.get(e),a=0,u=i.length;a<u;a++){var c=i[a];t(c,c[Zr(this,ju)])}else for(var f=0,s=o.length;f<s;f++){var l=o[f],h=Zr(this,Su).get(l);null==h||r&&!r(h)||t(h,l)}}},{key:"map",value:function(t,e){for(var r=e&&Pr(e),n=[],o=Zr(this,Su),i=Mi(ja(o).call(o)),a=0,u=i.length;a<u;a++){var c=i[a],f=Zr(this,Su).get(c);null==f||r&&!r(f)||n.push(t(f,c))}return e&&e.order&&this._sort(n,e.order),n}},{key:"_filterFields",value:function(t,e){var r;return t?zr(r=ji(e)?e:Si(e)).call(r,(function(e,r){return e[r]=t[r],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var r=e;Oa(t).call(t,(function(t,e){var n=t[r],o=e[r];return n>o?1:n<o?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");Oa(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var r=[],n=[],o=ji(t)?t:[t],i=0,a=o.length;i<a;i++){var u=this._remove(o[i]);if(u){var c=u[Zr(this,ju)];null!=c&&(r.push(c),n.push(u))}}return r.length&&this._trigger("remove",{items:r,oldData:n},e),r}},{key:"_remove",value:function(t){var e;if(eu(t)?e=t:t&&"object"===_i(t)&&(e=t[Zr(this,ju)]),null!=e&&Zr(this,Su).has(e)){var r=Zr(this,Su).get(e)||null;return Zr(this,Su).delete(e),--this.length,r}return null}},{key:"clear",value:function(t){for(var e,r=Mi(ja(e=Zr(this,Su)).call(e)),n=[],o=0,i=r.length;o<i;o++)n.push(Zr(this,Su).get(r[o]));return Zr(this,Su).clear(),this.length=0,this._trigger("remove",{items:r,oldData:n},t),r}},{key:"max",value:function(t){var e,r,n=null,o=null,i=Tu(va(e=Zr(this,Su)).call(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,u=a[t];"number"==typeof u&&(null==o||u>o)&&(n=a,o=u)}}catch(t){i.e(t)}finally{i.f()}return n||null}},{key:"min",value:function(t){var e,r,n=null,o=null,i=Tu(va(e=Zr(this,Su)).call(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,u=a[t];"number"==typeof u&&(null==o||u<o)&&(n=a,o=u)}}catch(t){i.e(t)}finally{i.f()}return n||null}},{key:"distinct",value:function(t){for(var e=Zr(this,Su),r=Mi(ja(e).call(e)),n=[],o=0,i=0,a=r.length;i<a;i++){for(var u=r[i],c=e.get(u)[t],f=!1,s=0;s<o;s++)if(n[s]==c){f=!0;break}f||void 0===c||(n[o]=c,o++)}return n}},{key:"_addItem",value:function(t){var e=function(t,e){return null==t[e]&&(t[e]=tu()),t}(t,Zr(this,ju)),r=e[Zr(this,ju)];if(Zr(this,Su).has(r))throw new Error("Cannot add item: item with id "+r+" already exists");return Zr(this,Su).set(r,e),++this.length,r}},{key:"_updateItem",value:function(t){var e=t[Zr(this,ju)];if(null==e)throw new Error("Cannot update item: item has no id (item: "+fa(t)+")");var r=Zr(this,Su).get(e);if(!r)throw new Error("Cannot update item: no item with id "+e+" found");return Zr(this,Su).set(e,Iu(Iu({},r),t)),e}},{key:"stream",value:function(t){if(t){var e=Zr(this,Su);return new Eu(go({},ra,ea.mark((function r(){var n,o,i,a;return ea.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=Tu(t),r.prev=1,n.s();case 3:if((o=n.n()).done){r.next=11;break}if(i=o.value,null==(a=e.get(i))){r.next=9;break}return r.next=9,[i,a];case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),n.e(r.t0);case 16:return r.prev=16,n.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])}))))}var r;return new Eu(go({},ra,$r(r=ta(Zr(this,Su))).call(r,Zr(this,Su))))}},{key:"idProp",get:function(){return Zr(this,ju)}}]),r}();function Nu(t,e){var r;if(void 0===Ni||null==oo(t)){if(ji(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return zu(t,e);var n=Ti(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return lo(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zu(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=no(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function zu(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gu(t){var e=function(){if("undefined"==typeof Reflect||!Yi)return!1;if(Yi.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Yi(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=$a(t);if(e){var o=$a(this).constructor;r=Yi(n,arguments,o)}else r=n.apply(this,arguments);return Wa(this,r)}}ku=new tr,Su=new tr,ju=new tr,Au=new tr;var Uu=function(t){Va(r,mu);var e=Gu(r);function r(t,n){var o,i;return Br(this,r),(i=e.call(this)).length=0,Lu.set(za(i),void 0),Mu.set(za(i),void 0),Cu.set(za(i),new wu),Fu.set(za(i),void 0),tn(za(i),Fu,n||{}),tn(za(i),Lu,$r(o=i._onEvent).call(o,za(i))),i.setData(t),i}return Xr(r,[{key:"setData",value:function(t){if(Zr(this,Mu)){Zr(this,Mu).off&&Zr(this,Mu).off("*",Zr(this,Lu));var e=Zr(this,Mu).getIds({filter:Pr(Zr(this,Fu))}),r=Zr(this,Mu).get(e);Zr(this,Cu).clear(),this.length=0,this._trigger("remove",{items:e,oldData:r})}if(null!=t){tn(this,Mu,t);for(var n=Zr(this,Mu).getIds({filter:Pr(Zr(this,Fu))}),o=0,i=n.length;o<i;o++){var a=n[o];Zr(this,Cu).add(a)}this.length=n.length,this._trigger("add",{items:n})}else tn(this,Mu,new Ru);Zr(this,Mu).on&&Zr(this,Mu).on("*",Zr(this,Lu))}},{key:"refresh",value:function(){for(var t=Zr(this,Mu).getIds({filter:Pr(Zr(this,Fu))}),e=Mi(Zr(this,Cu)),r={},n=[],o=[],i=[],a=0,u=t.length;a<u;a++){var c=t[a];r[c]=!0,Zr(this,Cu).has(c)||(n.push(c),Zr(this,Cu).add(c))}for(var f=0,s=e.length;f<s;f++){var l=e[f],h=Zr(this,Mu).get(l);null==h?console.error("If you see this, report it please."):r[l]||(o.push(l),i.push(h),Zr(this,Cu).delete(l))}this.length+=n.length-o.length,n.length&&this._trigger("add",{items:n}),o.length&&this._trigger("remove",{items:o,oldData:i})}},{key:"get",value:function(t,e){if(null==Zr(this,Mu))return null;var r,n=null;eu(t)||ji(t)?(n=t,r=e):r=t;var o=Yo({},Zr(this,Fu),r),i=Pr(Zr(this,Fu)),a=r&&Pr(r);return i&&a&&(o.filter=function(t){return i(t)&&a(t)}),null==n?Zr(this,Mu).get(o):Zr(this,Mu).get(n,o)}},{key:"getIds",value:function(t){if(Zr(this,Mu).length){var e,r=Pr(Zr(this,Fu)),n=null!=t?Pr(t):null;return e=n?r?function(t){return r(t)&&n(t)}:n:r,Zr(this,Mu).getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(Zr(this,Mu)){var r,n,o=Pr(Zr(this,Fu)),i=e&&Pr(e);n=i?o?function(t){return o(t)&&i(t)}:i:o,Do(r=Zr(this,Mu)).call(r,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(Zr(this,Mu)){var r,n,o=Pr(Zr(this,Fu)),i=e&&Pr(e);return n=i?o?function(t){return o(t)&&i(t)}:i:o,jr(r=Zr(this,Mu)).call(r,t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return Zr(this,Mu).getDataSet()}},{key:"stream",value:function(t){var e;return Zr(this,Mu).stream(t||go({},ra,$r(e=ja(Zr(this,Cu))).call(e,Zr(this,Cu))))}},{key:"dispose",value:function(){var t;(null===(t=Zr(this,Mu))||void 0===t?void 0:t.off)&&Zr(this,Mu).off("*",Zr(this,Lu));var e,n="This data view has already been disposed of.",o={get:function(){throw new Error(n)},set:function(){throw new Error(n)},configurable:!1},i=Nu(Ii(r.prototype));try{for(i.s();!(e=i.n()).done;){var a=e.value;on(this,a,o)}}catch(t){i.e(t)}finally{i.f()}}},{key:"_onEvent",value:function(t,e,r){if(e&&e.items&&Zr(this,Mu)){var n=e.items,o=[],i=[],a=[],u=[],c=[],f=[];switch(t){case"add":for(var s=0,l=n.length;s<l;s++){var h=n[s];this.get(h)&&(Zr(this,Cu).add(h),o.push(h))}break;case"update":for(var v=0,p=n.length;v<p;v++){var y=n[v];this.get(y)?Zr(this,Cu).has(y)?(i.push(y),c.push(e.data[v]),u.push(e.oldData[v])):(Zr(this,Cu).add(y),o.push(y)):Zr(this,Cu).has(y)&&(Zr(this,Cu).delete(y),a.push(y),f.push(e.oldData[v]))}break;case"remove":for(var d=0,g=n.length;d<g;d++){var m=n[d];Zr(this,Cu).has(m)&&(Zr(this,Cu).delete(m),a.push(m),f.push(e.oldData[d]))}}this.length+=o.length-a.length,o.length&&this._trigger("add",{items:o},r),i.length&&this._trigger("update",{items:i,oldData:u,data:c},r),a.length&&this._trigger("remove",{items:a,oldData:f},r)}}},{key:"idProp",get:function(){return this.getDataSet().idProp}}]),r}();function qu(t,e){return"object"===_i(e)&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof Do(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof jr(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}function Vu(t,e){return"object"===_i(e)&&null!==e&&t===e.idProp&&"function"==typeof Do(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof jr(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&qu(t,e.getDataSet())}Lu=new tr,Mu=new tr,Cu=new tr,Fu=new tr;export{Ui as DELETE,Ru as DataSet,Eu as DataStream,Uu as DataView,gu as Queue,en as createNewDataPipeFrom,qu as isDataSetLike,Vu as isDataViewLike};
|
|
30
|
+
* Forked By Naver egjs
|
|
31
|
+
* Copyright (c) hammerjs
|
|
32
|
+
* Licensed under the MIT license */function Ul(){return(Ul=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function Gl(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Vl(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Hl,$l="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}:Object.assign,Bl=["","webkit","Moz","MS","ms","o"],Jl="undefined"==typeof document?{style:{}}:document.createElement("div"),Kl=Math.round,Ql=Math.abs,Zl=Date.now;function tf(t,e){for(var r,n,i=e[0].toUpperCase()+e.slice(1),o=0;o<Bl.length;){if((n=(r=Bl[o])?r+i:e)in t)return n;o++}}Hl="undefined"==typeof window?{}:window;var ef=tf(Jl.style,"touchAction"),rf=void 0!==ef;var nf=function(){if(!rf)return!1;var t={},e=Hl.CSS&&Hl.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){return t[r]=!e||Hl.CSS.supports("touch-action",r)})),t}(),of="ontouchstart"in Hl,af=void 0!==tf(Hl,"PointerEvent"),uf=of&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),sf=["x","y"],cf=["clientX","clientY"];function lf(t,e,r){var n;if(t)if(t.forEach)t.forEach(e,r);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(r,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(r,t[n],n,t)}function ff(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function hf(t,e){return t.indexOf(e)>-1}var pf=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){"compute"===t&&(t=this.compute()),rf&&this.manager.element.style&&nf[t]&&(this.manager.element.style[ef]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return lf(this.manager.recognizers,(function(e){ff(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(hf(t,"none"))return"none";var e=hf(t,"pan-x"),r=hf(t,"pan-y");return e&&r?"none":e||r?e?"pan-x":"pan-y":hf(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,r=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,i=hf(n,"none")&&!nf.none,o=hf(n,"pan-y")&&!nf["pan-y"],a=hf(n,"pan-x")&&!nf["pan-x"];if(i){var u=1===t.pointers.length,s=t.distance<2,c=t.deltaTime<250;if(u&&s&&c)return}if(!a||!o)return i||o&&6&r||a&&24&r?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function vf(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function df(t){var e=t.length;if(1===e)return{x:Kl(t[0].clientX),y:Kl(t[0].clientY)};for(var r=0,n=0,i=0;i<e;)r+=t[i].clientX,n+=t[i].clientY,i++;return{x:Kl(r/e),y:Kl(n/e)}}function yf(t){for(var e=[],r=0;r<t.pointers.length;)e[r]={clientX:Kl(t.pointers[r].clientX),clientY:Kl(t.pointers[r].clientY)},r++;return{timeStamp:Zl(),pointers:e,center:df(e),deltaX:t.deltaX,deltaY:t.deltaY}}function gf(t,e,r){r||(r=sf);var n=e[r[0]]-t[r[0]],i=e[r[1]]-t[r[1]];return Math.sqrt(n*n+i*i)}function mf(t,e,r){r||(r=sf);var n=e[r[0]]-t[r[0]],i=e[r[1]]-t[r[1]];return 180*Math.atan2(i,n)/Math.PI}function bf(t,e){return t===e?1:Ql(t)>=Ql(e)?t<0?2:4:e<0?8:16}function _f(t,e,r){return{x:e/t||0,y:r/t||0}}function wf(t,e){var r=t.session,n=e.pointers,i=n.length;r.firstInput||(r.firstInput=yf(e)),i>1&&!r.firstMultiple?r.firstMultiple=yf(e):1===i&&(r.firstMultiple=!1);var o=r.firstInput,a=r.firstMultiple,u=a?a.center:o.center,s=e.center=df(n);e.timeStamp=Zl(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=mf(u,s),e.distance=gf(u,s),function(t,e){var r=e.center,n=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=t.offsetDelta={x:r.x,y:r.y}),e.deltaX=i.x+(r.x-n.x),e.deltaY=i.y+(r.y-n.y)}(r,e),e.offsetDirection=bf(e.deltaX,e.deltaY);var c,l,f=_f(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x,e.overallVelocityY=f.y,e.overallVelocity=Ql(f.x)>Ql(f.y)?f.x:f.y,e.scale=a?(c=a.pointers,gf((l=n)[0],l[1],cf)/gf(c[0],c[1],cf)):1,e.rotation=a?function(t,e){return mf(e[1],e[0],cf)+mf(t[1],t[0],cf)}(a.pointers,n):0,e.maxPointers=r.prevInput?e.pointers.length>r.prevInput.maxPointers?e.pointers.length:r.prevInput.maxPointers:e.pointers.length,function(t,e){var r,n,i,o,a=t.lastInterval||e,u=e.timeStamp-a.timeStamp;if(8!==e.eventType&&(u>25||void 0===a.velocity)){var s=e.deltaX-a.deltaX,c=e.deltaY-a.deltaY,l=_f(u,s,c);n=l.x,i=l.y,r=Ql(l.x)>Ql(l.y)?l.x:l.y,o=bf(s,c),t.lastInterval=e}else r=a.velocity,n=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=r,e.velocityX=n,e.velocityY=i,e.direction=o}(r,e);var h,p=t.element,v=e.srcEvent;vf(h=v.composedPath?v.composedPath()[0]:v.path?v.path[0]:v.target,p)&&(p=h),e.target=p}function Of(t,e,r){var n=r.pointers.length,i=r.changedPointers.length,o=1&e&&n-i==0,a=12&e&&n-i==0;r.isFirst=!!o,r.isFinal=!!a,o&&(t.session={}),r.eventType=e,wf(t,r),t.emit("hammer.input",r),t.recognize(r),t.session.prevInput=r}function Ef(t){return t.trim().split(/\s+/g)}function xf(t,e,r){lf(Ef(e),(function(e){t.addEventListener(e,r,!1)}))}function Tf(t,e,r){lf(Ef(e),(function(e){t.removeEventListener(e,r,!1)}))}function kf(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var Af=function(){function t(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){ff(t.options.enable,[t])&&r.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&xf(this.element,this.evEl,this.domHandler),this.evTarget&&xf(this.target,this.evTarget,this.domHandler),this.evWin&&xf(kf(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&Tf(this.element,this.evEl,this.domHandler),this.evTarget&&Tf(this.target,this.evTarget,this.domHandler),this.evWin&&Tf(kf(this.element),this.evWin,this.domHandler)},t}();function Sf(t,e,r){if(t.indexOf&&!r)return t.indexOf(e);for(var n=0;n<t.length;){if(r&&t[n][r]==e||!r&&t[n]===e)return n;n++}return-1}var jf={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},If={2:"touch",3:"pen",4:"mouse",5:"kinect"},Pf="pointerdown",Df="pointermove pointerup pointercancel";Hl.MSPointerEvent&&!Hl.PointerEvent&&(Pf="MSPointerDown",Df="MSPointerMove MSPointerUp MSPointerCancel");var Lf=function(t){function e(){var r,n=e.prototype;return n.evEl=Pf,n.evWin=Df,(r=t.apply(this,arguments)||this).store=r.manager.session.pointerEvents=[],r}return Gl(e,t),e.prototype.handler=function(t){var e=this.store,r=!1,n=t.type.toLowerCase().replace("ms",""),i=jf[n],o=If[t.pointerType]||t.pointerType,a="touch"===o,u=Sf(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?u<0&&(e.push(t),u=e.length-1):12&i&&(r=!0),u<0||(e[u]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),r&&e.splice(u,1))},e}(Af);function Cf(t){return Array.prototype.slice.call(t,0)}function Mf(t,e,r){for(var n=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];Sf(i,a)<0&&n.push(t[o]),i[o]=a,o++}return r&&(n=e?n.sort((function(t,r){return t[e]>r[e]})):n.sort()),n}var Nf={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Rf=function(t){function e(){var r;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(r=t.apply(this,arguments)||this).targetIds={},r}return Gl(e,t),e.prototype.handler=function(t){var e=Nf[t.type],r=Ff.call(this,t,e);r&&this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:"touch",srcEvent:t})},e}(Af);function Ff(t,e){var r,n,i=Cf(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Cf(t.changedTouches),u=[],s=this.target;if(n=i.filter((function(t){return vf(t.target,s)})),1===e)for(r=0;r<n.length;)o[n[r].identifier]=!0,r++;for(r=0;r<a.length;)o[a[r].identifier]&&u.push(a[r]),12&e&&delete o[a[r].identifier],r++;return u.length?[Mf(n.concat(u),"identifier",!0),u]:void 0}var zf={mousedown:1,mousemove:2,mouseup:4},qf=function(t){function e(){var r,n=e.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(r=t.apply(this,arguments)||this).pressed=!1,r}return Gl(e,t),e.prototype.handler=function(t){var e=zf[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))},e}(Af);function Yf(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var r={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(r);setTimeout((function(){var t=n.indexOf(r);t>-1&&n.splice(t,1)}),2500)}}function Xf(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,Yf.call(this,e)):12&t&&Yf.call(this,e)}function Wf(t){for(var e=t.srcEvent.clientX,r=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var i=this.lastTouches[n],o=Math.abs(e-i.x),a=Math.abs(r-i.y);if(o<=25&&a<=25)return!0}return!1}var Uf=function(){return function(t){function e(e,r){var n;return(n=t.call(this,e,r)||this).handler=function(t,e,r){var i="touch"===r.pointerType,o="mouse"===r.pointerType;if(!(o&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(i)Xf.call(Vl(Vl(n)),e,r);else if(o&&Wf.call(Vl(Vl(n)),r))return;n.callback(t,e,r)}},n.touch=new Rf(n.manager,n.handler),n.mouse=new qf(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return Gl(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(Af)}();function Gf(t,e,r){return!!Array.isArray(t)&&(lf(t,r[e],r),!0)}var Vf=1;function Hf(t,e){var r=e.manager;return r?r.get(t):t}function $f(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var Bf=function(){function t(t){void 0===t&&(t={}),this.options=Ul({enable:!0},t),this.id=Vf++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return $l(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(Gf(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Hf(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return Gf(t,"dropRecognizeWith",this)||(t=Hf(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(Gf(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Sf(e,t=Hf(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(Gf(t,"dropRequireFailure",this))return this;t=Hf(t,this);var e=Sf(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,r=this.state;function n(r){e.manager.emit(r,t)}r<8&&n(e.options.event+$f(r)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),r>=8&&n(e.options.event+$f(r))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=$l({},t);if(!ff(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),Jf=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,Ul({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,r.pCenter=!1,r._timer=null,r._input=null,r.count=0,r}Gl(e,t);var r=e.prototype;return r.getTouchAction=function(){return["manipulation"]},r.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,i=t.distance<r.threshold,o=t.deltaTime<r.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&n){if(4!==t.eventType)return this.failTimeout();var a=!this.pTime||t.timeStamp-this.pTime<r.interval,u=!this.pCenter||gf(this.pCenter,t.center)<r.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,u&&a?this.count+=1:this.count=1,this._input=t,0===this.count%r.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),r.interval),2):8}return 32},r.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=32}),this.options.interval),32},r.reset=function(){clearTimeout(this._timer)},r.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(Bf),Kf=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ul({pointers:1},e))||this}Gl(e,t);var r=e.prototype;return r.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},r.process=function(t){var e=this.state,r=t.eventType,n=6&e,i=this.attrTest(t);return n&&(8&r||!i)?16|e:n||i?4&r?8|e:2&e?4|e:2:32},e}(Bf);function Qf(t){return 16===t?"down":8===t?"up":2===t?"left":4===t?"right":""}var Zf=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,Ul({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,r.pY=null,r}Gl(e,t);var r=e.prototype;return r.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},r.directionTest=function(t){var e=this.options,r=!0,n=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,r=o!==this.pX,n=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:16,r=a!==this.pY,n=Math.abs(t.deltaY))),t.direction=i,r&&n>e.threshold&&i&e.direction},r.attrTest=function(t){return Kf.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},r.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var r=Qf(e.direction);r&&(e.additionalEvent=this.options.event+r),t.prototype.emit.call(this,e)},e}(Kf),th=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ul({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}Gl(e,t);var r=e.prototype;return r.getTouchAction=function(){return Zf.prototype.getTouchAction.call(this)},r.attrTest=function(e){var r,n=this.options.direction;return 30&n?r=e.overallVelocity:6&n?r=e.overallVelocityX:24&n&&(r=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Ql(r)>this.options.velocity&&4&e.eventType},r.emit=function(t){var e=Qf(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(Kf),eh=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ul({event:"pinch",threshold:0,pointers:2},e))||this}Gl(e,t);var r=e.prototype;return r.getTouchAction=function(){return["none"]},r.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},r.emit=function(e){if(1!==e.scale){var r=e.scale<1?"in":"out";e.additionalEvent=this.options.event+r}t.prototype.emit.call(this,e)},e}(Kf),rh=function(t){function e(e){return void 0===e&&(e={}),t.call(this,Ul({event:"rotate",threshold:0,pointers:2},e))||this}Gl(e,t);var r=e.prototype;return r.getTouchAction=function(){return["none"]},r.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(Kf),nh=function(t){function e(e){var r;return void 0===e&&(e={}),(r=t.call(this,Ul({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,r._input=null,r}Gl(e,t);var r=e.prototype;return r.getTouchAction=function(){return["auto"]},r.process=function(t){var e=this,r=this.options,n=t.pointers.length===r.pointers,i=t.distance<r.threshold,o=t.deltaTime>r.time;if(this._input=t,!i||!n||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),r.time);else if(4&t.eventType)return 8;return 32},r.reset=function(){clearTimeout(this._timer)},r.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Zl(),this.manager.emit(this.options.event,this._input)))},e}(Bf),ih={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},oh=[[rh,{enable:!1}],[eh,{enable:!1},["rotate"]],[th,{direction:6}],[Zf,{direction:6},["swipe"]],[Jf],[Jf,{event:"doubletap",taps:2},["tap"]],[nh]];function ah(t,e){var r,n=t.element;n.style&&(lf(t.options.cssProps,(function(i,o){r=tf(n.style,o),e?(t.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=t.oldCssProps[r]||""})),e||(t.oldCssProps={}))}var uh=function(){function t(t,e){var r,n=this;this.options=$l({},ih,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((r=this).options.inputClass||(af?Lf:uf?Rf:of?Uf:qf))(r,Of),this.touchAction=new pf(this,this.options.touchAction),ah(this,!0),lf(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return $l(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var r;this.touchAction.preventDefaults(t);var n=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=null);for(var o=0;o<n.length;)r=n[o],2===e.stopped||i&&r!==i&&!r.canRecognizeWith(i)?r.reset():r.recognize(t),!i&&14&r.state&&(e.curRecognizer=r,i=r),o++}},e.get=function(t){if(t instanceof Bf)return t;for(var e=this.recognizers,r=0;r<e.length;r++)if(e[r].options.event===t)return e[r];return null},e.add=function(t){if(Gf(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(Gf(t,"remove",this))return this;var e=this.get(t);if(t){var r=this.recognizers,n=Sf(r,e);-1!==n&&(r.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var r=this.handlers;return lf(Ef(t),(function(t){r[t]=r[t]||[],r[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var r=this.handlers;return lf(Ef(t),(function(t){e?r[t]&&r[t].splice(Sf(r[t],e),1):delete r[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var r=document.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=e,e.target.dispatchEvent(r)}(t,e);var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<r.length;)r[n](e),n++}},e.destroy=function(){this.element&&ah(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),sh={touchstart:1,touchmove:2,touchend:4,touchcancel:8},ch=function(t){function e(){var r,n=e.prototype;return n.evTarget="touchstart",n.evWin="touchstart touchmove touchend touchcancel",(r=t.apply(this,arguments)||this).started=!1,r}return Gl(e,t),e.prototype.handler=function(t){var e=sh[t.type];if(1===e&&(this.started=!0),this.started){var r=lh.call(this,t,e);12&e&&r[0].length-r[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:r[0],changedPointers:r[1],pointerType:"touch",srcEvent:t})}},e}(Af);function lh(t,e){var r=Cf(t.touches),n=Cf(t.changedTouches);return 12&e&&(r=Mf(r.concat(n),"identifier",!0)),[r,n]}function fh(t,e,r){var n="DEPRECATED METHOD: "+e+"\n"+r+" AT \n";return function(){var e=new Error("get-stack-trace"),r=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,n,r),t.apply(this,arguments)}}var hh=fh((function(t,e,r){for(var n=Object.keys(e),i=0;i<n.length;)(!r||r&&void 0===t[n[i]])&&(t[n[i]]=e[n[i]]),i++;return t}),"extend","Use `assign`."),ph=fh((function(t,e){return hh(t,e,!0)}),"merge","Use `assign`.");function vh(t,e,r){var n,i=e.prototype;(n=t.prototype=Object.create(i)).constructor=t,n._super=i,r&&$l(n,r)}function dh(t,e){return function(){return t.apply(e,arguments)}}var yh=function(){var t=function(t,e){return void 0===e&&(e={}),new uh(t,Ul({recognizers:oh.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=16,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=24,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=16,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=32,t.Manager=uh,t.Input=Af,t.TouchAction=pf,t.TouchInput=Rf,t.MouseInput=qf,t.PointerEventInput=Lf,t.TouchMouseInput=Uf,t.SingleTouchInput=ch,t.Recognizer=Bf,t.AttrRecognizer=Kf,t.Tap=Jf,t.Pan=Zf,t.Swipe=th,t.Pinch=eh,t.Rotate=rh,t.Press=nh,t.on=xf,t.off=Tf,t.each=lf,t.merge=ph,t.extend=hh,t.bindFn=dh,t.assign=$l,t.inherit=vh,t.bindFn=dh,t.prefixed=tf,t.toArray=Cf,t.inArray=Sf,t.uniqueArray=Mf,t.splitStr=Ef,t.boolOrFn=ff,t.hasParent=vf,t.addEventListeners=xf,t.removeEventListeners=Tf,t.defaults=$l({},ih,{preset:oh}),t}();function gh(t,e){var r=void 0!==Ws&&oa(t)||t["@@iterator"];if(!r){if(Bs(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return mh(t,e);var n=Hs(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Xo(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mh(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function mh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var bh=Ws("DELETE");function _h(){var t=wh.apply(void 0,arguments);return Eh(t),t}function wh(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e.length<2)return e[0];var n;if(e.length>2)return wh.apply(void 0,Vs(n=[_h(e[0],e[1])]).call(n,Xs(Hs(e).call(e,2))));var i,o=e[0],a=e[1],u=gh($s(a));try{for(u.s();!(i=u.n()).done;){var s=i.value;Object.prototype.propertyIsEnumerable.call(a,s)&&(a[s]===bh?delete o[s]:null===o[s]||null===a[s]||"object"!==Ys(o[s])||"object"!==Ys(a[s])||Bs(o[s])||Bs(a[s])?o[s]=Oh(a[s]):o[s]=wh(o[s],a[s]))}}catch(t){u.e(t)}finally{u.f()}return o}function Oh(t){return Bs(t)?Or(t).call(t,(function(t){return Oh(t)})):"object"===Ys(t)&&null!==t?wh({},t):t}function Eh(t){for(var e=0,r=Qs(t);e<r.length;e++){var n=r[e];t[n]===bh?delete t[n]:"object"===Ys(t[n])&&null!==t[n]&&Eh(t[n])}}var xh="undefined"!=typeof window?window.Hammer||yh:function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(){return{set:t}}};var t};function Th(t){var e,r=this;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){r._dom.overlay.parentNode.removeChild(r._dom.overlay)}));var n=xh(this._dom.overlay);n.on("tap",Se(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push((function(){n.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];oc(i).call(i,(function(t){n.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||r.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",r._onClick)}))),this._escListener=function(t){("key"in t?"Escape"===t.key:27===t.keyCode)&&r.deactivate()}}Wl(Th.prototype),Th.current=null,Th.prototype.destroy=function(){var t,e;this.deactivate();var r,n=gh(fc(t=xc(e=this._cleanupQueue).call(e,0)).call(t));try{for(n.s();!(r=n.n()).done;){(0,r.value)()}}catch(t){n.e(t)}finally{n.f()}},Th.prototype.activate=function(){Th.current&&Th.current.deactivate(),Th.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Th.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Th.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var kh=fe,Ah=Wt,Sh=$t,jh=x,Ih=mi,Ph=Ee,Dh=a,Lh=j("Reflect","construct"),Ch=Dh((function(){function t(){}return!(Lh((function(){}),[],t)instanceof t)})),Mh=!Dh((function(){Lh((function(){}))})),Nh=Ch||Mh;kh({target:"Reflect",stat:!0,forced:Nh,sham:Nh},{construct:function(t,e){Ah(t),Sh(e);var r=arguments.length<3?t:Ah(arguments[2]);if(Mh&&!Ch)return Lh(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(Ph.apply(t,n))}var i=r.prototype,o=Ih(jh(i)?i:Object.prototype),a=Function.apply.call(t,o,e);return jh(a)?a:o}});var Rh=T.Reflect.construct,Fh=El;fe({target:"Object",stat:!0},{setPrototypeOf:Gi});var zh=T.Object.setPrototypeOf;function qh(t,e){return(qh=zh||function(t,e){return t.__proto__=e,t})(t,e)}function Yh(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Fh(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qh(t,e)}function Xh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wh(t,e){if(e&&("object"===Ys(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xh(t)}var Uh=$c;function Gh(t){return(Gh=zh?Uh:function(t){return t.__proto__||Uh(t)})(t)}var Vh={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),a=new S(n||[]);return o._invoke=function(t,e,r){var n=f;return function(i,o){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===i)throw o;return I()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=T(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?v:h,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}(t,r,a),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",v="completed",d={};function y(){}function g(){}function m(){}var b={};b[o]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(j([])));w&&w!==r&&n.call(w,o)&&(b=w);var O=m.prototype=y.prototype=Object.create(b);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,a,u){var s=l(t[i],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function T(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,T(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=l(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function j(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:I}}function I(){return{value:e,done:!0}}return g.prototype=O.constructor=m,m.constructor=g,g.displayName=s(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,u,"GeneratorFunction")),t.prototype=Object.create(O),t},t.awrap=function(t){return{__await:t}},E(x.prototype),x.prototype[a]=function(){return this},t.AsyncIterator=x,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new x(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(O),s(O,u,"Generator"),O[o]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return u.type="throw",u.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}(Vh);var Hh=Vh.exports,$h={exports:{}},Bh=!a((function(){return Object.isExtensible(Object.preventExtensions({}))})),Jh=fe,Kh=nn,Qh=x,Zh=tt,tp=Vt.f,ep=aa,rp=ca,np=Bh,ip=!1,op=nt("meta"),ap=0,up=Object.isExtensible||function(){return!0},sp=function(t){tp(t,op,{value:{objectID:"O"+ap++,weakData:{}}})},cp=$h.exports={enable:function(){cp.enable=function(){},ip=!0;var t=ep.f,e=[].splice,r={};r[op]=1,t(r).length&&(ep.f=function(r){for(var n=t(r),i=0,o=n.length;i<o;i++)if(n[i]===op){e.call(n,i,1);break}return n},Jh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:rp.f}))},fastKey:function(t,e){if(!Qh(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Zh(t,op)){if(!up(t))return"F";if(!e)return"E";sp(t)}return t[op].objectID},getWeakData:function(t,e){if(!Zh(t,op)){if(!up(t))return!0;if(!e)return!1;sp(t)}return t[op].weakData},onFreeze:function(t){return np&&ip&&up(t)&&!Zh(t,op)&&sp(t),t}};Kh[op]=!0;var lp=$t,fp=_o,hp=Ce,pp=Gt,vp=So,dp=po,yp=function(t,e){this.stopped=t,this.result=e},gp=function(t,e,r){var n,i,o,a,u,s,c,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=pp(e,l,1+f+p),d=function(t){return n&&dp(n),new yp(!0,t)},y=function(t){return f?(lp(t),p?v(t[0],t[1],d):v(t[0],t[1])):p?v(t,d):v(t)};if(h)n=t;else{if("function"!=typeof(i=vp(t)))throw TypeError("Target is not iterable");if(fp(i)){for(o=0,a=hp(t.length);a>o;o++)if((u=y(t[o]))&&u instanceof yp)return u;return new yp(!1)}n=i.call(t)}for(s=n.next;!(c=s.call(n)).done;){try{u=y(c.value)}catch(t){throw dp(n),t}if("object"==typeof u&&u&&u instanceof yp)return u}return new yp(!1)},mp=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},bp=fe,_p=i,wp=$h.exports,Op=a,Ep=re,xp=gp,Tp=mp,kp=x,Ap=Ci,Sp=Vt.f,jp=lr.forEach,Ip=u,Pp=wn.set,Dp=wn.getterFor,Lp=function(t,e,r){var n,i=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),a=i?"set":"add",u=_p[t],s=u&&u.prototype,c={};if(Ip&&"function"==typeof u&&(o||s.forEach&&!Op((function(){(new u).entries().next()})))){n=e((function(e,r){Pp(Tp(e,n,t),{type:t,collection:new u}),null!=r&&xp(r,e[a],{that:e,AS_ENTRIES:i})}));var l=Dp(t);jp(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in s)||o&&"clear"==t||Ep(n.prototype,t,(function(r,n){var i=l(this).collection;if(!e&&o&&!kp(r))return"get"==t&&void 0;var a=i[t](0===r?0:r,n);return e?this:a}))})),o||Sp(n.prototype,"size",{configurable:!0,get:function(){return l(this).collection.size}})}else n=r.getConstructor(e,t,i,a),wp.enable();return Ap(n,t,!1,!0),c[t]=n,bp({global:!0,forced:!0},c),o||r.setStrong(n,t,i),n},Cp=Hi,Mp=j,Np=Vt,Rp=u,Fp=pt("species"),zp=Vt.f,qp=mi,Yp=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:Cp(t,n,e[n],r);return t},Xp=Gt,Wp=mp,Up=gp,Gp=oo,Vp=function(t){var e=Mp(t),r=Np.f;Rp&&e&&!e[Fp]&&r(e,Fp,{configurable:!0,get:function(){return this}})},Hp=u,$p=$h.exports.fastKey,Bp=wn.set,Jp=wn.getterFor,Kp={getConstructor:function(t,e,r,n){var i=t((function(t,o){Wp(t,i,e),Bp(t,{type:e,index:qp(null),first:void 0,last:void 0,size:0}),Hp||(t.size=0),null!=o&&Up(o,t[n],{that:t,AS_ENTRIES:r})})),o=Jp(e),a=function(t,e,r){var n,i,a=o(t),s=u(t,e);return s?s.value=r:(a.last=s={index:i=$p(e,!0),key:e,value:r,previous:n=a.last,next:void 0,removed:!1},a.first||(a.first=s),n&&(n.next=s),Hp?a.size++:t.size++,"F"!==i&&(a.index[i]=s)),t},u=function(t,e){var r,n=o(t),i=$p(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Yp(i.prototype,{clear:function(){for(var t=o(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,Hp?t.size=0:this.size=0},delete:function(t){var e=this,r=o(e),n=u(e,t);if(n){var i=n.next,a=n.previous;delete r.index[n.index],n.removed=!0,a&&(a.next=i),i&&(i.previous=a),r.first==n&&(r.first=i),r.last==n&&(r.last=a),Hp?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=o(this),n=Xp(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!u(this,t)}}),Yp(i.prototype,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),Hp&&zp(i.prototype,"size",{get:function(){return o(this).size}}),i},setStrong:function(t,e,r){var n=e+" Iterator",i=Jp(e),o=Jp(n);Gp(t,e,(function(t,e){Bp(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),Vp(e)}};Lp("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Kp);var Qp=T.Map,Zp=lr.some;fe({target:"Array",proto:!0,forced:!Xe("some")},{some:function(t){return Zp(this,t,arguments.length>1?arguments[1]:void 0)}});var tv=Te("Array").some,ev=Array.prototype,rv=function(t){var e=t.some;return t===ev||t instanceof Array&&e===ev.some?tv:e},nv=Te("Array").keys,iv=Ti,ov=Array.prototype,av={DOMTokenList:!0,NodeList:!0},uv=function(t){var e=t.keys;return t===ov||t instanceof Array&&e===ov.keys||av.hasOwnProperty(iv(t))?nv:e},sv=Math.floor,cv=function(t,e){var r=t.length,n=sv(r/2);return r<8?lv(t,e):fv(cv(t.slice(0,n),e),cv(t.slice(n),e),e)},lv=function(t,e){for(var r,n,i=t.length,o=1;o<i;){for(n=o,r=t[o];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==o++&&(t[n]=r)}return t},fv=function(t,e,r){for(var n=t.length,i=e.length,o=0,a=0,u=[];o<n||a<i;)o<n&&a<i?u.push(r(t[o],e[a])<=0?t[o++]:e[a++]):u.push(o<n?t[o++]:e[a++]);return u},hv=cv,pv=I.match(/firefox\/(\d+)/i),vv=!!pv&&+pv[1],dv=/MSIE|Trident/.test(I),yv=I.match(/AppleWebKit\/(\d+)\./),gv=!!yv&&+yv[1],mv=fe,bv=Wt,_v=K,wv=Ce,Ov=zr,Ev=a,xv=hv,Tv=Xe,kv=vv,Av=dv,Sv=R,jv=gv,Iv=[],Pv=Iv.sort,Dv=Ev((function(){Iv.sort(void 0)})),Lv=Ev((function(){Iv.sort(null)})),Cv=Tv("sort"),Mv=!Ev((function(){if(Sv)return Sv<70;if(!(kv&&kv>3)){if(Av)return!0;if(jv)return jv<603;var t,e,r,n,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)Iv.push({k:e+n,v:r})}for(Iv.sort((function(t,e){return e.v-t.v})),n=0;n<Iv.length;n++)e=Iv[n].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));mv({target:"Array",proto:!0,forced:Dv||!Lv||!Cv||!Mv},{sort:function(t){void 0!==t&&bv(t);var e=_v(this);if(Mv)return void 0===t?Pv.call(e):Pv.call(e,t);var r,n,i=[],o=wv(e.length);for(n=0;n<o;n++)n in e&&i.push(e[n]);for(r=(i=xv(i,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:Ov(e)>Ov(r)?1:-1}}(t))).length,n=0;n<r;)e[n]=i[n++];for(;n<o;)delete e[n++];return e}});var Nv,Rv=Te("Array").sort,Fv=Array.prototype,zv=function(t){var e=t.sort;return t===Fv||t instanceof Array&&e===Fv.sort?Rv:e},qv=Te("Array").values,Yv=Ti,Xv=Array.prototype,Wv={DOMTokenList:!0,NodeList:!0},Uv=function(t){var e=t.values;return t===Xv||t instanceof Array&&e===Xv.values||Wv.hasOwnProperty(Yv(t))?qv:e},Gv=zs,Vv=Te("Array").entries,Hv=Ti,$v=Array.prototype,Bv={DOMTokenList:!0,NodeList:!0},Jv=function(t){var e=t.entries;return t===$v||t instanceof Array&&e===$v.entries||Bv.hasOwnProperty(Hv(t))?Vv:e},Kv=new Uint8Array(16);function Qv(){if(!Nv&&!(Nv="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nv(Kv)}var Zv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function td(t){return"string"==typeof t&&Zv.test(t)}for(var ed=[],rd=0;rd<256;++rd)ed.push((rd+256).toString(16).substr(1));function nd(t,e,r){var n=(t=t||{}).random||(t.rng||Qv)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var i=0;i<16;++i)e[r+i]=n[i];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(ed[t[e+0]]+ed[t[e+1]]+ed[t[e+2]]+ed[t[e+3]]+"-"+ed[t[e+4]]+ed[t[e+5]]+"-"+ed[t[e+6]]+ed[t[e+7]]+"-"+ed[t[e+8]]+ed[t[e+9]]+"-"+ed[t[e+10]]+ed[t[e+11]]+ed[t[e+12]]+ed[t[e+13]]+ed[t[e+14]]+ed[t[e+15]]).toLowerCase();if(!td(r))throw TypeError("Stringified UUID is invalid");return r}(n)}function id(t){return"string"==typeof t||"number"==typeof t}var od=function(){function e(r){t(this,e),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(r)}return ge(e,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,r=0;r<e.length;r++){var n=e[r];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var r=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];r.queue({args:e,fn:n,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Fl((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;oc(t=xc(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(t,r){var n=new e(r);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){n.flush()};var i=[{name:"flush",original:void 0}];if(r&&r.replace)for(var o=0;o<r.replace.length;o++){var a=r.replace[o];i.push({name:a,original:t[a]}),n.replace(t,a)}return n._extended={object:t,methods:i},n}}]),e}(),ad=function(){function e(){t(this,e),this._subscribers={"*":[],add:[],remove:[],update:[]},this.subscribe=e.prototype.on,this.unsubscribe=e.prototype.off}return ge(e,[{key:"_trigger",value:function(t,e,r){var n,i;if("*"===t)throw new Error("Cannot trigger event *");oc(n=Vs(i=[]).call(i,Xs(this._subscribers[t]),Xs(this._subscribers["*"]))).call(n,(function(n){n(t,e,null!=r?r:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var r;this._subscribers[t]=mr(r=this._subscribers[t]).call(r,(function(t){return t!==e}))}}]),e}();Lp("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Kp);var ud=T.Set,sd=$t,cd=So,ld=function(t){var e=cd(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return sd(e.call(t))};function fd(t,e){var r=void 0!==Ws&&oa(t)||t["@@iterator"];if(!r){if(Bs(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return hd(t,e);var n=Hs(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Xo(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hd(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function hd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var pd=function(e){function r(e){t(this,r),this._pairs=e}return ge(r,[{key:Gv,value:Hh.mark((function t(){var e,r,n,i,o;return Hh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=fd(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Fs(r.value,2),i=n[0],o=n[1],t.next=7,[i,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:Hh.mark((function t(){var e,r,n,i,o;return Hh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=fd(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Fs(r.value,2),i=n[0],o=n[1],t.next=7,[i,o];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:Hh.mark((function t(){var e,r,n,i;return Hh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=fd(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Fs(r.value,1),i=n[0],t.next=7,i;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:Hh.mark((function t(){var e,r,n,i;return Hh.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=fd(this._pairs),t.prev=1,e.s();case 3:if((r=e.n()).done){t.next=9;break}return n=Fs(r.value,2),i=n[1],t.next=7,i;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return Or(t=Xs(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return Or(t=Xs(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Xs(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=xl(null),r=fd(this._pairs);try{for(r.s();!(t=r.n()).done;){var n=Fs(t.value,2),i=n[0],o=n[1];e[i]=o}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"toMap",value:function(){return new Qp(this._pairs)}},{key:"toIdSet",value:function(){return new ud(this.toIdArray())}},{key:"toItemSet",value:function(){return new ud(this.toItemArray())}},{key:"cache",value:function(){return new r(Xs(this._pairs))}},{key:"distinct",value:function(t){var e,r=new ud,n=fd(this._pairs);try{for(n.s();!(e=n.n()).done;){var i=Fs(e.value,2),o=i[0],a=i[1];r.add(t(a,o))}}catch(t){n.e(t)}finally{n.f()}return r}},{key:"filter",value:function(t){var e=this._pairs;return new r(ts({},Gv,Hh.mark((function r(){var n,i,o,a,u;return Hh.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=fd(e),r.prev=1,n.s();case 3:if((i=n.n()).done){r.next=10;break}if(o=Fs(i.value,2),a=o[0],u=o[1],!t(u,a)){r.next=8;break}return r.next=8,[a,u];case 8:r.next=3;break;case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(1),n.e(r.t0);case 15:return r.prev=15,n.f(),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[1,12,15,18]])}))))}},{key:"forEach",value:function(t){var e,r=fd(this._pairs);try{for(r.s();!(e=r.n()).done;){var n=Fs(e.value,2),i=n[0];t(n[1],i)}}catch(t){r.e(t)}finally{r.f()}}},{key:"map",value:function(t){var e=this._pairs;return new r(ts({},Gv,Hh.mark((function r(){var n,i,o,a,u;return Hh.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=fd(e),r.prev=1,n.s();case 3:if((i=n.n()).done){r.next=9;break}return o=Fs(i.value,2),a=o[0],u=o[1],r.next=7,[a,t(u,a)];case 7:r.next=3;break;case 9:r.next=14;break;case 11:r.prev=11,r.t0=r.catch(1),n.e(r.t0);case 14:return r.prev=14,n.f(),r.finish(14);case 17:case"end":return r.stop()}}),r,null,[[1,11,14,17]])}))))}},{key:"max",value:function(t){var e=ld(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],i=t(r.value[1],r.value[0]);!(r=e.next()).done;){var o=Fs(r.value,2),a=o[0],u=o[1],s=t(u,a);s>i&&(i=s,n=u)}return n}},{key:"min",value:function(t){var e=ld(this._pairs),r=e.next();if(r.done)return null;for(var n=r.value[1],i=t(r.value[1],r.value[0]);!(r=e.next()).done;){var o=Fs(r.value,2),a=o[0],u=o[1],s=t(u,a);s<i&&(i=s,n=u)}return n}},{key:"reduce",value:function(t,e){var r,n=fd(this._pairs);try{for(n.s();!(r=n.n()).done;){var i=Fs(r.value,2),o=i[0];e=t(e,i[1],o)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"sort",value:function(t){var e=this;return new r(ts({},Gv,(function(){var r;return ld(zv(r=Xs(e._pairs)).call(r,(function(e,r){var n=Fs(e,2),i=n[0],o=n[1],a=Fs(r,2),u=a[0],s=a[1];return t(o,s,i,u)})))})))}}]),r}();function vd(t,e){var r=Qs(t);if(ju){var n=ju(t);e&&(n=mr(n).call(n,(function(e){return zu(t,e).enumerable}))),r.push.apply(r,n)}return r}function dd(t){for(var e=1;e<arguments.length;e++){var r,n=null!=arguments[e]?arguments[e]:{};if(e%2)oc(r=vd(Object(n),!0)).call(r,(function(e){ts(t,e,n[e])}));else if($u)Qu(t,$u(n));else{var i;oc(i=vd(Object(n))).call(i,(function(e){Zu(t,e,zu(n,e))}))}}return t}function yd(t,e){var r=void 0!==Ws&&oa(t)||t["@@iterator"];if(!r){if(Bs(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return gd(t,e);var n=Hs(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Xo(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gd(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function gd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function md(t){var e=function(){if("undefined"==typeof Reflect||!Rh)return!1;if(Rh.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rh(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Gh(t);if(e){var i=Gh(this).constructor;r=Rh(n,arguments,i)}else r=n.apply(this,arguments);return Wh(this,r)}}var bd=function(e){Yh(n,ad);var r=md(n);function n(e,i){var o;return t(this,n),(o=r.call(this))._queue=null,e&&!Bs(e)&&(i=e,e=[]),o._options=i||{},o._data=new Qp,o.length=0,o._idProp=o._options.fieldId||"id",e&&e.length&&o.add(e),o.setOptions(i),o}return ge(n,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=od.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===Ys(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var r,n=this,i=[];if(Bs(t)){var o=Or(t).call(t,(function(t){return t[n._idProp]}));if(rv(o).call(o,(function(t){return n._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var a=0,u=t.length;a<u;a++)r=this._addItem(t[a]),i.push(r)}else{if(!t||"object"!==Ys(t))throw new Error("Unknown dataType");r=this._addItem(t),i.push(r)}return i.length&&this._trigger("add",{items:i},e),i}},{key:"update",value:function(t,e){var r=this,n=[],i=[],o=[],a=[],u=this._idProp,s=function(t){var e=t[u];if(null!=e&&r._data.has(e)){var s=t,c=Mc({},r._data.get(e)),l=r._updateItem(s);i.push(l),a.push(s),o.push(c)}else{var f=r._addItem(t);n.push(f)}};if(Bs(t))for(var c=0,l=t.length;c<l;c++)t[c]&&"object"===Ys(t[c])?s(t[c]):console.warn("Ignoring input item, which is not an object at index "+c);else{if(!t||"object"!==Ys(t))throw new Error("Unknown dataType");s(t)}if(n.length&&this._trigger("add",{items:n},e),i.length){var f={items:i,oldData:o,data:a};this._trigger("update",f,e)}return Vs(n).call(n,i)}},{key:"updateOnly",value:function(t,e){var r,n=this;Bs(t)||(t=[t]);var i=Or(r=Or(t).call(t,(function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(r,(function(t){var e=t.oldData,r=t.update,i=e[n._idProp],o=function(t){for(var e,r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return _h.apply(void 0,Vs(e=[{},t]).call(e,n))}(e,r);return n._data.set(i,o),{id:i,oldData:e,updatedData:o}}));if(i.length){var o={items:Or(i).call(i,(function(t){return t.id})),oldData:Or(i).call(i,(function(t){return t.oldData})),data:Or(i).call(i,(function(t){return t.updatedData}))};return this._trigger("update",o,e),o.items}return[]}},{key:"get",value:function(t,e){var r=void 0,n=void 0,i=void 0;id(t)?(r=t,i=e):Bs(t)?(n=t,i=e):i=t;var o,a=i&&"Object"===i.returnType?"Object":"Array",u=i&&mr(i),s=[],c=void 0,l=void 0,f=void 0;if(null!=r)(c=this._data.get(r))&&u&&!u(c)&&(c=void 0);else if(null!=n)for(var h=0,p=n.length;h<p;h++)null==(c=this._data.get(n[h]))||u&&!u(c)||s.push(c);else for(var v,d=0,y=(l=Xs(uv(v=this._data).call(v))).length;d<y;d++)f=l[d],null==(c=this._data.get(f))||u&&!u(c)||s.push(c);if(i&&i.order&&null==r&&this._sort(s,i.order),i&&i.fields){var g=i.fields;if(null!=r&&null!=c)c=this._filterFields(c,g);else for(var m=0,b=s.length;m<b;m++)s[m]=this._filterFields(s[m],g)}if("Object"==a){for(var _={},w=0,O=s.length;w<O;w++){var E=s[w];_[E[this._idProp]]=E}return _}return null!=r?null!==(o=c)&&void 0!==o?o:null:s}},{key:"getIds",value:function(t){var e=this._data,r=t&&mr(t),n=t&&t.order,i=Xs(uv(e).call(e)),o=[];if(r)if(n){for(var a=[],u=0,s=i.length;u<s;u++){var c=i[u],l=this._data.get(c);null!=l&&r(l)&&a.push(l)}this._sort(a,n);for(var f=0,h=a.length;f<h;f++)o.push(a[f][this._idProp])}else for(var p=0,v=i.length;p<v;p++){var d=i[p],y=this._data.get(d);null!=y&&r(y)&&o.push(y[this._idProp])}else if(n){for(var g=[],m=0,b=i.length;m<b;m++){var _=i[m];g.push(e.get(_))}this._sort(g,n);for(var w=0,O=g.length;w<O;w++)o.push(g[w][this._idProp])}else for(var E=0,x=i.length;E<x;E++){var T=i[E],k=e.get(T);null!=k&&o.push(k[this._idProp])}return o}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var r=e&&mr(e),n=this._data,i=Xs(uv(n).call(n));if(e&&e.order)for(var o=this.get(e),a=0,u=o.length;a<u;a++){var s=o[a];t(s,s[this._idProp])}else for(var c=0,l=i.length;c<l;c++){var f=i[c],h=this._data.get(f);null==h||r&&!r(h)||t(h,f)}}},{key:"map",value:function(t,e){for(var r=e&&mr(e),n=[],i=this._data,o=Xs(uv(i).call(i)),a=0,u=o.length;a<u;a++){var s=o[a],c=this._data.get(s);null==c||r&&!r(c)||n.push(t(c,s))}return e&&e.order&&this._sort(n,e.order),n}},{key:"_filterFields",value:function(t,e){var r;return t?Be(r=Bs(e)?e:Qs(e)).call(r,(function(e,r){return e[r]=t[r],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var r=e;zv(t).call(t,(function(t,e){var n=t[r],i=e[r];return n>i?1:n<i?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");zv(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var r=[],n=[],i=Bs(t)?t:[t],o=0,a=i.length;o<a;o++){var u=this._remove(i[o]);if(u){var s=u[this._idProp];null!=s&&(r.push(s),n.push(u))}}return r.length&&this._trigger("remove",{items:r,oldData:n},e),r}},{key:"_remove",value:function(t){var e;if(id(t)?e=t:t&&"object"===Ys(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var r=this._data.get(e)||null;return this._data.delete(e),--this.length,r}return null}},{key:"clear",value:function(t){for(var e,r=Xs(uv(e=this._data).call(e)),n=[],i=0,o=r.length;i<o;i++)n.push(this._data.get(r[i]));return this._data.clear(),this.length=0,this._trigger("remove",{items:r,oldData:n},t),r}},{key:"max",value:function(t){var e,r,n=null,i=null,o=yd(Uv(e=this._data).call(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,u=a[t];"number"==typeof u&&(null==i||u>i)&&(n=a,i=u)}}catch(t){o.e(t)}finally{o.f()}return n||null}},{key:"min",value:function(t){var e,r,n=null,i=null,o=yd(Uv(e=this._data).call(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,u=a[t];"number"==typeof u&&(null==i||u<i)&&(n=a,i=u)}}catch(t){o.e(t)}finally{o.f()}return n||null}},{key:"distinct",value:function(t){for(var e=this._data,r=Xs(uv(e).call(e)),n=[],i=0,o=0,a=r.length;o<a;o++){for(var u=r[o],s=e.get(u)[t],c=!1,l=0;l<i;l++)if(n[l]==s){c=!0;break}c||void 0===s||(n[i]=s,i++)}return n}},{key:"_addItem",value:function(t){var e=function(t,e){return null==t[e]&&(t[e]=nd()),t}(t,this._idProp),r=e[this._idProp];if(this._data.has(r))throw new Error("Cannot add item: item with id "+r+" already exists");return this._data.set(r,e),++this.length,r}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+Cl(t)+")");var r=this._data.get(e);if(!r)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,dd(dd({},r),t)),e}},{key:"stream",value:function(t){if(t){var e=this._data;return new pd(ts({},Gv,Hh.mark((function r(){var n,i,o,a;return Hh.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=yd(t),r.prev=1,n.s();case 3:if((i=n.n()).done){r.next=11;break}if(o=i.value,null==(a=e.get(o))){r.next=9;break}return r.next=9,[o,a];case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t0=r.catch(1),n.e(r.t0);case 16:return r.prev=16,n.f(),r.finish(16);case 19:case"end":return r.stop()}}),r,null,[[1,13,16,19]])}))))}var r;return new pd(ts({},Gv,Se(r=Jv(this._data)).call(r,this._data)))}}]),n}();function _d(t,e){var r=void 0!==Ws&&oa(t)||t["@@iterator"];if(!r){if(Bs(t)||(r=function(t,e){var r;if(!t)return;if("string"==typeof t)return wd(t,e);var n=Hs(r=Object.prototype.toString.call(t)).call(r,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Xo(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wd(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function wd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Od(t){var e=function(){if("undefined"==typeof Reflect||!Rh)return!1;if(Rh.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Rh(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Gh(t);if(e){var i=Gh(this).constructor;r=Rh(n,arguments,i)}else r=n.apply(this,arguments);return Wh(this,r)}}var Ed=function(e){Yh(n,ad);var r=Od(n);function n(e,i){var o,a;return t(this,n),(a=r.call(this)).length=0,a._ids=new ud,a._options=i||{},a._listener=Se(o=a._onEvent).call(o,Xh(a)),a.setData(e),a}return ge(n,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:mr(this._options)}),r=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:r})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:mr(this._options)}),i=0,o=n.length;i<o;i++){var a=n[i];this._ids.add(a)}this.length=n.length,this._trigger("add",{items:n})}else this._data=new bd;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:mr(this._options)}),e=Xs(this._ids),r={},n=[],i=[],o=[],a=0,u=t.length;a<u;a++){var s=t[a];r[s]=!0,this._ids.has(s)||(n.push(s),this._ids.add(s))}for(var c=0,l=e.length;c<l;c++){var f=e[c],h=this._data.get(f);null==h?console.error("If you see this, report it please."):r[f]||(i.push(f),o.push(h),this._ids.delete(f))}this.length+=n.length-i.length,n.length&&this._trigger("add",{items:n}),i.length&&this._trigger("remove",{items:i,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var r,n=null;id(t)||Bs(t)?(n=t,r=e):r=t;var i=Mc({},this._options,r),o=mr(this._options),a=r&&mr(r);return o&&a&&(i.filter=function(t){return o(t)&&a(t)}),null==n?this._data.get(i):this._data.get(n,i)}},{key:"getIds",value:function(t){if(this._data.length){var e,r=mr(this._options),n=null!=t?mr(t):null;return e=n?r?function(t){return r(t)&&n(t)}:n:r,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var r,n,i=mr(this._options),o=e&&mr(e);n=o?i?function(t){return i(t)&&o(t)}:o:i,oc(r=this._data).call(r,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var r,n,i=mr(this._options),o=e&&mr(e);return n=o?i?function(t){return i(t)&&o(t)}:o:i,Or(r=this._data).call(r,t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||ts({},Gv,Se(e=uv(this._ids)).call(e,this._ids)))}},{key:"dispose",value:function(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);var e,r="This data view has already been disposed of.",i={get:function(){throw new Error(r)},set:function(){throw new Error(r)},configurable:!1},o=_d($s(n.prototype));try{for(o.s();!(e=o.n()).done;){var a=e.value;Zu(this,a,i)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_onEvent",value:function(t,e,r){if(e&&e.items&&this._data){var n=e.items,i=[],o=[],a=[],u=[],s=[],c=[];switch(t){case"add":for(var l=0,f=n.length;l<f;l++){var h=n[l];this.get(h)&&(this._ids.add(h),i.push(h))}break;case"update":for(var p=0,v=n.length;p<v;p++){var d=n[p];this.get(d)?this._ids.has(d)?(o.push(d),s.push(e.data[p]),u.push(e.oldData[p])):(this._ids.add(d),i.push(d)):this._ids.has(d)&&(this._ids.delete(d),a.push(d),c.push(e.oldData[p]))}break;case"remove":for(var y=0,g=n.length;y<g;y++){var m=n[y];this._ids.has(m)&&(this._ids.delete(m),a.push(m),c.push(e.oldData[y]))}}this.length+=i.length-a.length,i.length&&this._trigger("add",{items:i},r),o.length&&this._trigger("update",{items:o,oldData:u,data:s},r),a.length&&this._trigger("remove",{items:a,oldData:c},r)}}}]),n}();function xd(t,e){return"object"===Ys(e)&&null!==e&&t===e.idProp&&"function"==typeof e.add&&"function"==typeof e.clear&&"function"==typeof e.distinct&&"function"==typeof oc(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof Or(e)&&"function"==typeof e.max&&"function"==typeof e.min&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.remove&&"function"==typeof e.setOptions&&"function"==typeof e.stream&&"function"==typeof e.update&&"function"==typeof e.updateOnly}function Td(t,e){return"object"===Ys(e)&&null!==e&&t===e.idProp&&"function"==typeof oc(e)&&"function"==typeof e.get&&"function"==typeof e.getDataSet&&"function"==typeof e.getIds&&"number"==typeof e.length&&"function"==typeof Or(e)&&"function"==typeof e.off&&"function"==typeof e.on&&"function"==typeof e.stream&&xd(t,e.getDataSet())}export{bh as DELETE,bd as DataSet,pd as DataStream,Ed as DataView,od as Queue,Mr as createNewDataPipeFrom,xd as isDataSetLike,Td as isDataViewLike};
|
|
66
33
|
//# sourceMappingURL=vis-data.min.js.map
|